/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    /* Color Palette */
    --primary: #CC785C;
    --primary-dark: #B86548;
    --primary-light: #E8AB93;
    --accent: #F4A261;
    
    /* Background Colors */
    --bg-primary: #FAFAF9;
    --bg-secondary: #FFFFFF;
    --bg-dark: #1A1614;
    
    /* Text Colors */
    --text-primary: #2D2621;
    --text-secondary: #6B6157;
    --text-muted: #9C8F85;
    
    /* UI Colors */
    --border: #E5DDD5;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(45, 38, 33, 0.05);
    --shadow-md: 0 4px 6px rgba(45, 38, 33, 0.07);
    --shadow-lg: 0 10px 15px rgba(45, 38, 33, 0.1);
    --shadow-xl: 0 20px 25px rgba(45, 38, 33, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
  }
  
  body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* ==========================================================================
     LAYOUT
     ========================================================================== */
  
  .app-layout {
    display: flex;
    flex: 1;
    min-height: 100vh;
  }
  
  .main-wrapper {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .main-container {
    flex: 1;
    padding: 2rem;
  }
  
  /* ==========================================================================
     SIDEBAR NAVIGATION
     ========================================================================== */
  
  .sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
  }
  
  .sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
  }
  
  .brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.375rem;
  }
  
  .brand-text {
    flex: 1;
  }
  
  .brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
  }
  
  .brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .sidebar-nav {
    padding: 1rem 0;
  }
  
  .nav-section {
    margin-bottom: 1.5rem;
  }
  
  .nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
  }
  
  .nav-items {
    list-style: none;
  }
  
  .nav-item {
    margin: 0.25rem 0.75rem;
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s;
    position: relative;
  }
  
  .nav-link:hover {
    background: rgba(204, 120, 92, 0.08);
    color: var(--primary);
  }
  
  .nav-link.active {
    background: rgba(204, 120, 92, 0.12);
    color: var(--primary);
  }
  
  .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
  }
  
  .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
  }
  
  .nav-badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    background: rgba(204, 120, 92, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
  }
  
  /* ==========================================================================
     HEADER
     ========================================================================== */
  
  .top-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(10px);
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.25rem;
  }
  
  .search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 1rem;
    min-width: 300px;
    transition: all 0.2s;
  }
  
  .search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204, 120, 92, 0.1);
  }
  
  .search-box i {
    color: var(--text-muted);
  }
  
  .search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .header-action {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
  }
  
  .header-action:hover {
    background: rgba(204, 120, 92, 0.08);
    color: var(--primary);
  }
  
  .header-action-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
  }
  
  /* ==========================================================================
     USER DROPDOWN
     ========================================================================== */
  
  .user-dropdown {
    position: relative;
  }
  
  .user-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .user-toggle:hover {
    background: rgba(204, 120, 92, 0.05);
    border-color: var(--primary);
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
  }
  
  .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
  }
  
  .user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
  }
  
  .dropdown-item:last-child {
    border-bottom: none;
  }
  
  .dropdown-item:hover {
    background: rgba(204, 120, 92, 0.05);
    color: var(--primary);
  }
  
  .dropdown-item i {
    width: 20px;
    text-align: center;
  }
  
  /* ==========================================================================
     ALERTS & NOTIFICATIONS
     ========================================================================== */
  
  .flash-messages {
    padding: 0 2rem;
    margin-bottom: 1rem;
  }
  
  .alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #065F46;
  }
  
  .alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: #991B1B;
  }
  
  .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: #92400E;
  }
  
  .alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: #1E40AF;
  }
  
  .alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .alert-content {
    flex: 1;
  }
  
  /* ==========================================================================
     PAGE HEADERS
     ========================================================================== */
  
  .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
  }
  
  .page-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
  }
  
  /* ==========================================================================
     BUTTONS
     ========================================================================== */
  
  .btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(204, 120, 92, 0.25);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 120, 92, 0.35);
  }
  
  .btn-primary:active {
    transform: translateY(0);
  }
  
  .btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border);
  }
  
  .btn-secondary:hover {
    background: var(--border);
  }
  
  .btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    border-radius: 6px;
  }
  
  .btn-edit {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.2);
  }
  
  .btn-edit:hover {
    background: rgba(59, 130, 246, 0.2);
  }
  
  .btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
  }
  
  .btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
  }
  
  /* ==========================================================================
     BADGES
     ========================================================================== */
  
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 0.375rem;
  }
  
  .badge-admin {
    background: rgba(204, 120, 92, 0.15);
    color: var(--primary);
  }
  
  .badge-manager {
    background: rgba(59, 130, 246, 0.15);
    color: #2563EB;
  }
  
  .badge-clerk {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
  }
  
  .badge-agent {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
  }
  
  .badge-accountant {
    background: rgba(139, 92, 246, 0.15);
    color: #7C3AED;
  }
  
  .badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
  }
  
  .badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
  }
  
  .trend-up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
  }
  
  .trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
  }
  
  /* ==========================================================================
     FORMS
     ========================================================================== */
  
  .form-container {
    max-width: 700px;
    margin: 0 auto;
  }
  
  .form-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
  }
  
  .form-label-required::after {
    content: '*';
    color: var(--error);
    margin-left: 0.25rem;
  }
  
  .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(204, 120, 92, 0.1);
  }
  
  .form-control.error {
    border-color: var(--error);
  }
  
  .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6157' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
  }
  
  .form-error {
    color: var(--error);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
  
  .form-error i {
    font-size: 0.75rem;
  }
  
  .form-help {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
  }
  
  .form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
  }
  
  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
  }
  
  .checkbox-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
  }
  
  .checkbox-label {
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
  }
  
  .password-strength {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
  }
  
  .password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
  }
  
  .strength-weak {
    width: 33%;
    background: var(--error);
  }
  
  .strength-medium {
    width: 66%;
    background: var(--warning);
  }
  
  .strength-strong {
    width: 100%;
    background: var(--success);
  }
  
  .password-requirements {
    background: rgba(204, 120, 92, 0.05);
    border: 1px solid rgba(204, 120, 92, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .requirements-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
  }
  
  .requirements-list {
    list-style: none;
    font-size: 0.8125rem;
    color: var(--text-secondary);
  }
  
  .requirements-list li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .requirements-list i {
    color: var(--primary);
    font-size: 0.75rem;
  }
  
  /* ==========================================================================
     TABLES
     ========================================================================== */
  
  .table-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  .table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .table thead {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border);
  }
  
  .table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
  }
  
  .table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
  }
  
  .table tbody tr:hover {
    background: rgba(204, 120, 92, 0.03);
  }
  
  .table tbody tr:last-child {
    border-bottom: none;
  }
  
  .table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
  }
  
  .user-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
  }
  
  .user-info .user-name {
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .user-info .user-email {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
  
  .table-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .empty-state {
    text-align: center;
    padding: 4rem 2rem;
  }
  
  .empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
  }
  
  .empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .empty-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }
  
  /* ==========================================================================
     PAGINATION
     ========================================================================== */
  
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
  }
  
  .pagination-btn {
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
  }
  
  .pagination-btn:hover:not(.disabled) {
    background: rgba(204, 120, 92, 0.1);
    border-color: var(--primary);
    color: var(--primary);
  }
  
  .pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
  }
  
  .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  /* ==========================================================================
     DASHBOARD COMPONENTS
     ========================================================================== */
  
  .welcome-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
  }
  
  .welcome-content {
    position: relative;
    z-index: 1;
  }
  
  .welcome-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .welcome-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  
  .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  
  .stat-card:hover::before {
    transform: scaleX(1);
  }
  
  .stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  
  .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(204, 120, 92, 0.1);
    color: var(--primary);
  }
  
  .stat-trend {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-weight: 600;
  }
  
  .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
  }
  
  .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .quick-actions,
  .activity-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
  }
  
  .activity-section {
    margin-top: 1.5rem;
  }
  
  .quick-actions-title,
  .activity-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }
  
  .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
  }
  
  .action-btn:hover {
    border-color: var(--primary);
    background: rgba(204, 120, 92, 0.05);
    transform: translateX(4px);
  }
  
  .action-btn i {
    font-size: 1.25rem;
    color: var(--primary);
  }
  
  .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    transition: background 0.2s;
  }
  
  .activity-item:hover {
    background: var(--bg-primary);
  }
  
  .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(204, 120, 92, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
  }
  
  .activity-content {
    flex: 1;
  }
  
  .activity-text {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
  }
  
  .activity-time {
    color: var(--text-muted);
    font-size: 0.8125rem;
  }
  
  /* ==========================================================================
     LOGIN PAGE
     ========================================================================== */
  
  .login-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  
  .login-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .login-header {
    text-align: center;
    padding: 3rem 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(204, 120, 92, 0.05) 0%, rgba(244, 162, 97, 0.05) 100%);
    border-bottom: 1px solid var(--border);
  }
  
  .login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(204, 120, 92, 0.25);
  }
  
  .login-icon i {
    font-size: 2rem;
    color: white;
  }
  
  .login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  
  .login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
  }
  
  .login-body {
    padding: 2.5rem;
  }
  
  .login-footer {
    padding: 1.5rem 2.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    text-align: center;
  }
  
  .login-footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
  
  .login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
  }
  
  .login-footer a:hover {
    text-decoration: underline;
  }
  
  /* ==========================================================================
     PROFILE PAGE
     ========================================================================== */
  
  .profile-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
  }
  
  .profile-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid rgba(255, 255, 255, 0.3);
  }
  
  .profile-info {
    flex: 1;
  }
  
  .profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .profile-role {
    font-size: 1.25rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }
  
  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .info-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    border: 1px solid var(--border);
  }
  
  .info-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
  }
  
  .info-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(204, 120, 92, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
  }
  
  .actions-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border);
  }
  
  .actions-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }
  
  .action-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .action-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(204, 120, 92, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
  }
  
  .action-btn-content {
    flex: 1;
  }
  
  .action-btn-title {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .action-btn-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
  }
  
  /* ==========================================================================
     UTILITY CLASSES
     ========================================================================== */
  
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
  }
  
  .back-link:hover {
    color: var(--primary);
  }
  
  /* ==========================================================================
     RESPONSIVE DESIGN
     ========================================================================== */
  
  @media (max-width: 1024px) {
    .sidebar {
      transform: translateX(-100%);
    }
  
    .sidebar.active {
      transform: translateX(0);
    }
  
    .main-wrapper {
      margin-left: 0;
    }
  
    .menu-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .search-box {
      min-width: auto;
      flex: 1;
    }
  }
  
  @media (max-width: 768px) {
    .user-info {
      display: none;
    }
  
    .header-right {
      gap: 0.5rem;
    }
  
    .main-container {
      padding: 1rem;
    }
  
    .stats-grid {
      grid-template-columns: 1fr;
    }
  
    .quick-actions-grid {
      grid-template-columns: 1fr;
    }
  
    .info-grid {
      grid-template-columns: 1fr;
    }
  
    .profile-content {
      flex-direction: column;
      text-align: center;
    }
  
    .profile-name {
      font-size: 2rem;
    }
  
    .welcome-title {
      font-size: 1.75rem;
    }
  }