/*!* * Documentation * */

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #444;
  background-color: #f9f9f9;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #c59d5f;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  color: #b0854a;
  text-decoration: underline;
}

.p-t-20 {
  padding-top: 2em;
}

.p-t-50 {
  padding-top: 5em;
}

.list-none {
  list-style: none;
}

/* Navbar */
.navbar-default {
  border: none;
  margin-bottom: 0;
  background: linear-gradient(90deg, #c59d5f, #d4b483);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1030;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: #fff !important;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}

/* Sidebar Wrapper */
#wrapper {
  margin-top: 80px;
  padding-left: 0;
  transition: all 0.3s ease;
}

#wrapper.toggled {
  padding-left: 250px;
}

/* Sidebar */
#sidebar-wrapper {
  background: #ffffff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  position: fixed;
  left: 250px;
  width: 250px;
  height: calc(100% - 80px);
  margin-left: -250px;
  overflow-y: auto;
  transition: all 0.3s ease;
  top: 80px;
  border-right: 1px solid #eee;
}

.sidebar-nav {
  padding: 20px 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: #555;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

.sidebar-nav li a:hover {
  color: #c59d5f;
  background-color: rgba(197, 157, 95, 0.08);
  text-decoration: none;
  padding-left: 30px;
}

.sidebar-nav li a i {
  width: 20px;
  text-align: center;
}

/* Page Content */
#page-content-wrapper {
  width: 100%;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-top: 20px;
  margin-left: 250px;
  min-height: calc(100vh - 140px);
  transition: all 0.3s ease;
}

/* Page Header */
.page-header {
  padding-bottom: 15px;
  margin: 30px 0 25px;
  border-bottom: 2px solid #eaeaea;
  font-weight: 700;
  color: #333;
  font-size: 26px;
}

.com-container {
  padding-bottom: 4em;
  margin-bottom: 2em;
}

/* Credits Box */
.credits {
  background: #f8f9fa;
  padding: 18px 20px;
  border-radius: 8px;
  border-left: 5px solid #c59d5f;
  margin: 20px 0;
  font-size: 15px;
  color: #555;
}

/* ================= FOOTER ================= */

.footer-credits {
  margin-top: 60px;
  padding: 35px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1e1e1e, #2b2b2b);
  color: #ccc;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .footer-credits {
  background: #f8f9fa;
  color: #555;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.footer-credits p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.footer-credits .small {
  margin-top: 8px;
  font-size: 13px;
  color: #999;
}

.footer-credits .designby {
  margin-top: 10px;
  font-size: 13px;
}

.footer-credits .designby a {
  color: #c59d5f;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-credits .designby a:hover {
  color: #e2bb7f;
  text-decoration: underline;
}

/* Mobile footer */
@media (max-width: 576px) {
  .footer-credits {
    margin-top: 40px;
    padding: 25px 15px;
    border-radius: 10px;
  }

  .footer-credits p {
    font-size: 13px;
  }

  .footer-credits .designby {
    font-size: 12px;
  }
}


/* Alerts */
.alert {
  border-radius: 8px;
  border: none;
  padding: 18px 20px;
}

.alert-success {
  background-color: #e8f6ef;
  color: #155724;
  border-left: 5px solid #28a745;
}

.alert-info {
  background-color: #e3f2fd;
  color: #0c5460;
  border-left: 5px solid #17a2b8;
}

.alert-light {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #e9ecef;
}

/* Code Blocks */
pre.prettyprint {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #c59d5f;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  margin: 20px 0;
}

code {
  color: #c59d5f;
  background: #f8f9fa;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-light {
  background: #f8f9fa;
  border: 1px solid #ddd;
}

.btn-dark {
  background: #333;
  color: white;
  border: 1px solid #222;
}

.btn-light:hover, .btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== MOBILE RESPONSIVE ========== */

/* Tablet and below */
@media (max-width: 991.98px) {
  body {
    font-size: 14px;
  }
  
  .page-header {
    font-size: 22px;
  }
  
  pre.prettyprint {
    font-size: 13px;
    padding: 15px;
  }
  
  .alert {
    padding: 15px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  /* Navbar adjustments */
  .navbar-default {
    padding: 15px 0;
  }
  
  .logo {
    font-size: 18px;
  }
  
  /* Sidebar - hidden by default on mobile */
  #sidebar-wrapper {
    width: 0;
    margin-left: 0;
    left: 0;
    transform: translateX(-100%);
    z-index: 1050;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
  }
  
  #wrapper.toggled #sidebar-wrapper {
    width: 250px;
    transform: translateX(0);
  }
  
  /* Page content - full width on mobile */
  #page-content-wrapper {
    margin-left: 0;
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
  }
  
  #wrapper.toggled #page-content-wrapper {
    opacity: 0.5;
    pointer-events: none;
  }
  
  /* Typography */
  .page-header {
    font-size: 20px;
    margin: 20px 0 15px;
  }
  
  .com-container {
    padding-bottom: 2em;
    margin-bottom: 1.5em;
  }
  
  /* Code blocks */
  pre.prettyprint {
    font-size: 12px;
    padding: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Buttons */
  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .text-center .btn {
    display: inline-block;
    margin: 5px;
  }
  
  /* Credits */
  .credits {
    padding: 15px;
    font-size: 14px;
  }
}

/* Small phones (576px and below) */
@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
  
  .navbar-default {
    padding: 12px 0;
  }
  
  .logo {
    font-size: 16px;
    padding: 0 10px;
  }
  
  #wrapper {
    margin-top: 70px;
  }
  
  #sidebar-wrapper {
    top: 70px;
    height: calc(100% - 70px);
    width: 280px;
  }
  
  #page-content-wrapper {
    padding: 15px;
    margin-top: 10px;
    border-radius: 6px;
  }
  
  .page-header {
    font-size: 18px;
    padding-bottom: 10px;
    margin: 15px 0;
  }
  
  pre.prettyprint {
    padding: 12px;
    font-size: 11px;
  }
  
  code {
    font-size: 12px;
    padding: 2px 6px;
  }
  
  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .footer-credits {
    margin-top: 30px;
    padding-top: 20px;
  }
  
  .footer-credits .small {
    font-size: 12px;
  }
  
  .sidebar-nav li a {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Extra small phones (375px and below) */
@media (max-width: 375px) {
  .logo {
    font-size: 15px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  
  #sidebar-wrapper {
    width: 100%;
  }
  
  #page-content-wrapper {
    padding: 12px;
  }
  
  .page-header {
    font-size: 17px;
  }
  
  pre.prettyprint {
    padding: 10px;
    font-size: 10px;
  }
  
  .mobile-menu-btn {
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 16px;
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  #sidebar-wrapper {
    height: -webkit-fill-available;
  }
}

/* Prevent text selection on mobile */
@media (max-width: 768px) {
  .btn {
    -webkit-tap-highlight-color: transparent;
  }
}