/* Custom Styles for Skyland LMS */
:root {
  --primary-color: #1A213E;
  --accent-color: #F0D5A6;
  --primary-light: rgba(26, 33, 62, 0.1);
  --primary-dark: #151b33;
}

/* Authentication Pages */
.authentication-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.authentication-basic .card {
  max-width: 400px;
  width: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.app-brand-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.form-password-toggle .input-group-text {
  cursor: pointer;
  border-left: none;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 33, 62, 0.3);
}

/* Layout Styles */
.layout-wrapper {
  min-height: 100vh;
}

.layout-menu {
  background: var(--primary-color);
  width: 280px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.layout-page {
  margin-left: 280px;
  min-height: 100vh;
}

.layout-navbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

.navbar-title h5 {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar-actions .btn {
  background: var(--primary-color);
  border: none;
}

.navbar-actions .btn:hover {
  background: var(--primary-dark);
}

.content-wrapper {
  padding: 0.75rem;
  background: #f8fafc;
}

/* Brand Styles */
.app-brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(240, 213, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent-color);
}

.app-brand-logo {
  margin-right: 0.75rem;
}

.app-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

.layout-menu-toggle {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* User Info Styles */
.user-info {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(240, 213, 166, 0.1);
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.user-avatar .avatar-initial {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
}

.user-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-role {
  color: var(--accent-color);
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Navigation Styles */
.menu-nav {
  flex: 1;
  padding: 1rem 0;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  margin-bottom: 0.25rem;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  color: rgba(240, 213, 166, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0 25px 25px 0;
  margin-right: 1rem;
}

.menu-link:hover {
  background: rgba(240, 213, 166, 0.1);
  color: var(--accent-color);
  transform: translateX(5px);
}

.menu-item.active .menu-link {
  background: var(--accent-color);
  color: var(--primary-color);
  font-weight: 600;
}

.menu-link i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

/* Footer Styles */
.menu-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(240, 213, 166, 0.1);
}

.logout-link {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: rgba(240, 213, 166, 0.8);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.logout-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

.logout-link i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0;
  padding: 1.25rem 1.5rem;
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
}

.bg-label-primary { background: var(--primary-light) !important; color: var(--primary-color) !important; }
.bg-label-success { background: rgba(240, 213, 166, 0.3) !important; color: var(--primary-color) !important; }
.bg-label-info { background: var(--primary-light) !important; color: var(--primary-color) !important; }
.bg-label-warning { background: var(--accent-color) !important; color: var(--primary-color) !important; }
.bg-label-danger { background: rgba(26, 33, 62, 0.1) !important; color: var(--primary-color) !important; }

/* Table Styles */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background: #f8fafc;
  border: none;
  font-weight: 600;
  color: #4a5568;
  padding: 1rem;
}

.table td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* Avatar Styles */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.avatar-initial {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* Mobile Toggle */
function toggleSidebar() {
  document.querySelector('.layout-menu').classList.toggle('show');
}

/* Responsive */
@media (max-width: 1199px) {
  .layout-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .layout-page {
    margin-left: 0;
  }
  
  .layout-menu.show {
    transform: translateX(0);
  }
  
  .layout-navbar {
    padding-left: 4rem;
  }
}

@media (max-width: 768px) {
  .layout-menu {
    width: 100%;
  }
  
  .content-wrapper {
    padding: 1rem;
  }
}

/* Form Styles */
.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--primary-light);
}

.form-label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
}