/* 
 * HMDC Parcel System - Modern Glass Morphism UI Framework
 * Complete UI Rewrap with Professional Design
 */

/* === ROOT VARIABLES === */
:root {
    /* Glass Morphism Colors */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --glass-backdrop: blur(20px);
    
    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-danger: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-info: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* Advanced Gradients */
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-ocean: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
    --gradient-sunset: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    
    /* Typography Gradients */
    --text-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-gradient-alt: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    
    /* Animation Timings */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === GLASS MORPHISM BASE CLASSES === */
.glass {
    backdrop-filter: var(--glass-backdrop);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.glass-card {
    backdrop-filter: var(--glass-backdrop);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.5);
}

.glass-panel {
    backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    border-radius: 24px;
}

.glass-button {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* === GRADIENT BACKGROUNDS === */
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-gradient-success { background: var(--gradient-success); }
.bg-gradient-warning { background: var(--gradient-warning); }
.bg-gradient-danger { background: var(--gradient-danger); }
.bg-gradient-info { background: var(--gradient-info); }
.bg-gradient-cosmic { background: var(--gradient-cosmic); }
.bg-gradient-ocean { background: var(--gradient-ocean); }
.bg-gradient-sunset { background: var(--gradient-sunset); }
.bg-gradient-aurora { background: var(--gradient-aurora); }

/* === GRADIENT TEXT === */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-gradient-alt {
    background: var(--text-gradient-alt);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.6); }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === ANIMATION CLASSES === */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-in-up 0.6s ease-out;
}

.animate-gradient {
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

/* === HOVER EFFECTS === */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: all var(--transition-normal);
}

/* === MODERN BUTTONS === */
.btn-modern {
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* === MODERN CARDS === */
.card-modern {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.5);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, white, transparent);
}
.sidebar {
    transition: all 0.3s ease-in-out;
}

.sidebar.sidebar-collapsed {
    width: 4rem !important;
}

.sidebar.sidebar-expanded {
    width: 16rem !important;
}

/* Mobile off-canvas support */
#app-sidebar {
    will-change: transform;
}
#sidebar-backdrop {
    transition: opacity 0.2s ease;
}

.sidebar-text {
    transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out;
    white-space: nowrap;
}

.sidebar-collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-link {
    position: relative;
}

.sidebar-collapsed .sidebar-link:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #374151;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-collapse-icon {
    transition: transform 0.3s ease-in-out;
}

/* Custom button styles */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

.btn-secondary {
    @apply bg-gray-600 hover:bg-gray-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

.btn-success {
    @apply bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

.btn-warning {
    @apply bg-yellow-600 hover:bg-yellow-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

.btn-danger {
    @apply bg-red-600 hover:bg-red-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

/* Form styles */
.form-input {
    @apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500;
}

.form-select {
    @apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500;
}

.form-textarea {
    @apply block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500 resize-none;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-md p-6;
}

.card-header {
    @apply border-b border-gray-200 pb-4 mb-4;
}

.card-title {
    @apply text-xl font-semibold text-gray-900;
}

/* Table styles */
.table-container {
    @apply overflow-x-auto shadow ring-1 ring-black ring-opacity-5 rounded-lg;
}

.table {
    @apply min-w-full divide-y divide-gray-300;
}

.table th {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider bg-gray-50;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
}

.table tbody tr:nth-child(even) {
    @apply bg-gray-50;
}

.table tbody tr:hover {
    @apply bg-gray-100;
}

/* Status badges */
.status-badge {
    @apply px-2 inline-flex text-xs leading-5 font-semibold rounded-full;
}

.status-pending {
    @apply bg-yellow-100 text-yellow-800;
}

.status-in-transit {
    @apply bg-blue-100 text-blue-800;
}

.status-delivered {
    @apply bg-green-100 text-green-800;
}

.status-cancelled {
    @apply bg-red-100 text-red-800;
}

/* Dashboard stats cards */
.stats-card {
    @apply bg-white overflow-hidden shadow rounded-lg;
}

.stats-card-content {
    @apply p-5;
}

.stats-card-header {
    @apply flex items-center;
}

.stats-card-icon {
    @apply flex-shrink-0 text-2xl;
}

.stats-card-info {
    @apply ml-5 w-0 flex-1;
}

.stats-card-title {
    @apply text-sm font-medium text-gray-500 truncate;
}

.stats-card-value {
    @apply text-lg font-medium text-gray-900;
}

/* Navigation styles */
.nav-link {
    @apply flex items-center px-4 py-2 text-sm font-medium rounded-md transition-colors duration-150;
}

.nav-link.active {
    @apply bg-blue-100 text-blue-700;
}

.nav-link:hover {
    @apply bg-gray-100 text-gray-700;
}

/* Modal styles */
.modal-overlay {
    @apply fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50;
}

.modal-container {
    @apply relative top-20 mx-auto p-5 border w-11/12 md:w-1/2 lg:w-1/3 shadow-lg rounded-md bg-white;
}

.modal-header {
    @apply flex items-center justify-between pb-3;
}

.modal-title {
    @apply text-xl font-semibold text-gray-900;
}

.modal-close {
    @apply text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto;
}

/* Print styles */
@media print {
    .print-container {
        @apply bg-white;
    }
    
    .no-print {
        display: none !important;
    }
    
    body {
        @apply text-black bg-white;
    }
    
    .print-header {
        @apply border-b-2 border-black pb-4 mb-6;
    }
    
    .invoice-table {
        @apply border border-black;
    }
    
    .invoice-table th,
    .invoice-table td {
        @apply border border-black px-2 py-1;
    }
}

/* Barcode styles */
.barcode-container {
    @apply text-center p-4 bg-white border rounded-lg;
}

.barcode-image {
    @apply mx-auto mb-2;
}

.barcode-text {
    @apply text-sm font-mono text-gray-600;
}

/* Loading states */
.loading {
    @apply opacity-50 pointer-events-none;
}

.loading::after {
    content: '';
    @apply absolute inset-0 bg-white bg-opacity-75 flex items-center justify-center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Cpath d='M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z' fill='%23007bff'%3E%3CanimateTransform attributeType='xml' attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-container {
        @apply text-sm;
    }
    
    .table th,
    .table td {
        @apply px-3 py-2;
    }
    
    .modal-container {
        @apply w-11/12 top-10;
    }
    
    .stats-card-content {
        @apply p-3;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-400 rounded;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-600;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chart container */
.chart-container {
    @apply relative w-full;
    height: 300px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 400px;
    }
}

/* Custom focus styles */
.focus-outline {
    @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}

/* Notification styles */
.notification {
    @apply fixed top-4 right-4 max-w-sm z-50 transform transition-transform duration-300;
}

.notification.show {
    @apply translate-x-0;
}

.notification.hide {
    @apply translate-x-full;
}

/* === ENHANCED GLASS MORPHISM DASHBOARD STYLES === */

/* Dynamic Background with Gradient Animation */
.dashboard-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
    min-height: 100vh;
    position: relative;
}

.dashboard-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
    z-index: -1;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === ADVANCED SIDEBAR SYSTEM === */
.sidebar {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 10px 0 30px rgba(31, 38, 135, 0.2);
}

.sidebar.collapsed {
    width: 80px;
    box-shadow: 5px 0 20px rgba(31, 38, 135, 0.15);
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
}

.sidebar.collapsed .sidebar-arrow {
    transform: rotate(180deg) scale(1.2);
}

.sidebar-text {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 1;
    transform: translateX(0) scale(1);
}

.sidebar-arrow {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === ENHANCED GLASS CARDS === */
.glass-effect {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.4);
    border-radius: 20px;
}

.modern-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.3);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(31, 38, 135, 0.5);
}

/* === NAVIGATION ITEMS === */
.nav-item {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 16px;
    margin: 6px 12px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
}

/* === ENHANCED STAT CARDS === */
.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.8s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.05) rotateY(10deg);
    box-shadow: 0 30px 60px rgba(31, 38, 135, 0.5);
}

/* === ICON ENHANCEMENTS === */
.stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stat-icon:hover {
    transform: rotate(15deg) scale(1.2);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

/* === TYPOGRAPHY === */
.title-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* === CHART CONTAINERS === */
.chart-container {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.3);
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(31, 38, 135, 0.4);
}

/* === FLOATING ANIMATIONS === */
@keyframes enhanced-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    50% { 
        transform: translateY(-15px) rotate(5deg);
    }
}

.floating-enhanced {
    animation: enhanced-float 6s ease-in-out infinite;
}

/* === HEADER AND PROFILE STYLES === */
.header-glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.profile-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .stat-card:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .modern-card:hover {
        transform: translateY(-5px);
    }
    
    .nav-item:hover {
        transform: translateX(4px) scale(1.01);
    }
}

/* === TABLET RESPONSIVE === */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
}

/* === LOGIN PAGE SPECIFIC STYLES === */

/* Enhanced Login Background Effects */
.dashboard-bg {
    overflow: hidden;
}

.dashboard-bg::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: dots-float 20s linear infinite;
    z-index: -1;
}

@keyframes dots-float {
    0% { transform: translate(-50px, -50px) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

/* Ultra Glass Effect for Login */
.ultra-glass {
    backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px rgba(31, 38, 135, 0.4);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.ultra-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

/* Enhanced Logo Animation */
.logo-container {
    animation: enhanced-float 8s ease-in-out infinite;
    position: relative;
}

.logo-glow {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-container:hover .logo-glow {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.8);
}

/* Enhanced Form Inputs */
.glass-input {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(31, 38, 135, 0.2);
}

.glass-input:focus {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.glass-input:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(31, 38, 135, 0.3);
}

/* Enhanced Button */
.glass-button {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.glass-button:hover::before {
    left: 100%;
}

.glass-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.6);
}

.glass-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Checkbox Enhancement */
.glass-checkbox {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.glass-checkbox:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Title Enhancements */
.title-glow {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: title-pulse 4s ease-in-out infinite;
}

@keyframes title-pulse {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 50px rgba(255, 255, 255, 0.8); }
}

/* Error Message Enhancement */
.error-glass {
    backdrop-filter: blur(15px);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

/* Particle Animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 6s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Login Mobile Responsive */
@media (max-width: 768px) {
    .ultra-glass {
        margin: 20px;
        border-radius: 20px;
    }
    
    .glass-button:hover,
    .glass-input:hover {
        transform: none;
    }
    
    .logo-container:hover .logo-glow {
        transform: scale(1.1);
    }
}

/* === SHARED SYSTEM STYLES === */

/* Modern animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating animation for logo */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    .print-full-width {
        width: 100% !important;
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced form inputs */
.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
