/* Admin Panel Layout Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fa;
  overflow-x: hidden;
}

/* ===================================
   SIDEBAR STYLES
   =================================== */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: #2c3e50;
  color: white;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 20px;
  background: #1a252f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-title {
  font-size: 24px;
  font-weight: bold;
  display: block;
}

.brand-sub {
  font-size: 12px;
  color: #95a5a6;
  display: block;
  margin-top: 5px;
}

.sidebar-menu {
  list-style: none;
  padding: 10px 0;
  flex: 1;
}

.sidebar-menu li {
  margin: 0;
}

.menu-header {
  padding: 15px 20px 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: #95a5a6;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.menu-link.active {
  background: #3498db;
  color: white;
}

.menu-link .icon {
  font-size: 18px;
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.menu-link span {
  flex: 1;
}

.menu-link .chevron {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.has-dropdown.open .chevron {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.has-dropdown.open .submenu {
  max-height: 500px;
}

.submenu li a {
  display: block;
  padding: 10px 20px 10px 52px;
  color: #bdc3c7;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding-left: 56px;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a252f;
}

.sidebar-footer .btn {
  width: 100%;
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */

.main-content {
  margin-left: 260px;
  min-height: 100vh;
  padding: 0;
  background: #f8f9fa;
}

#app {
  width: 100%;
  min-height: 100vh;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-260px);
    transition: transform 0.3s ease;
  }
}

@media (max-width: 768px) {
  .sidebar.mobile-open {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}

@media (max-width: 768px) {
  .mobile-overlay.active {
    display: block;
  }
}

/* ===================================
   SCROLLBAR STYLES (for sidebar)
   =================================== */

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   CONTENT PADDING
   =================================== */

.content-wrapper {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.p-4 {
  padding: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.text-muted {
  color: #6c757d !important;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

