/* Modern CSS Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --warning: #f59e0b;
    --error: #ef4444;
    --success: #10b981;
    --info: #06b6d4;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --rounded-sm: 0.25rem;
    --rounded: 0.375rem;
    --rounded-md: 0.5rem;
    --rounded-lg: 0.75rem;
    --rounded-xl: 1rem;
    --rounded-2xl: 1.5rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation - Modern Design */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-right: 1px solid var(--gray-200);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--rounded);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation Menu */
.sidebar-menu {
    list-style: none;
    padding: var(--space-4) 0;
}

.sidebar-menu li {
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    gap: var(--space-3);
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-size: var(--font-size-sm);
}

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

.menu-item.active {
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    border-right: 3px solid var(--primary);
    color: white;
}

.menu-item i {
    width: 20px;
    font-size: var(--font-size-base);
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* User Info Section */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--rounded-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    margin-bottom: var(--space-4);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--info), var(--secondary));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

/* Online Status Indicator */
.user-avatar::before {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border: 2px solid var(--gray-800);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 2px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.username {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--rounded-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--rounded-xl);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 0;
    background: var(--gray-50);
    min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.mobile-header h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--info));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.mobile-login-btn {
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--rounded);
    transition: var(--transition);
}

.mobile-login-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Content Sections */
.content-section {
    display: none;
    padding: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.content-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Card Design */
.calculator-container {
    background: white;
    border-radius: var(--rounded-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-10);
    margin-bottom: var(--space-8);
    border: 1px solid var(--gray-200);
}

/* Form Sections */
.form-section {
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--rounded-xl);
    border: 1px solid var(--gray-200);
}

.form-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--gray-200);
}

.form-section h3 i {
    color: var(--primary);
    font-size: var(--font-size-lg);
}

/* Form Grid System */
.form-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.form-row {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Elements */
label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    margin-bottom: var(--space-1);
}

input, select, textarea {
    padding: var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--rounded-lg);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: white;
    color: var(--gray-900);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

input:hover, select:hover, textarea:hover {
    border-color: var(--gray-400);
}

/* Validation States */
input.valid, select.valid, textarea.valid {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

input.invalid, select.invalid, textarea.invalid {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.field-error {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--error);
    font-size: var(--font-size-xs);
    font-weight: 500;
    margin-top: var(--space-1);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Package System */
.packages-container {
    background: white;
    border-radius: var(--rounded-xl);
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
}

.package-item {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--rounded-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.package-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--info));
}

.package-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
}

.package-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--rounded-lg);
    font-size: var(--font-size-sm);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.remove-package-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: var(--space-3);
    border-radius: var(--rounded-lg);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.remove-package-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.package-inputs {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 0.8fr; /* Weight, Length, Width, Height, Quantity */
    gap: var(--space-4);
    align-items: end;
}

/* Responsive package inputs */
@media (max-width: 1024px) {
    .package-inputs {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }
}

/* Add Package Button */
.add-package-btn {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    border: none;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--rounded-xl);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin: var(--space-6) auto 0;
    box-shadow: var(--shadow-md);
    min-width: 200px;
}

.add-package-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark), #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modern Button System */
.btn {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--rounded-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-decoration: none;
    border: none;
    min-height: 48px;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn.secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn.secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calculate Button - Hero Style */
.calculate-btn {
    width: 100%;
    padding: var(--space-5) var(--space-8);
    background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
    color: white;
    border: none;
    border-radius: var(--rounded-xl);
    font-size: var(--font-size-xl);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
    box-shadow: var(--shadow-xl);
    min-height: 64px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0891b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

/* Price Results Cards - Enhanced */
.results-section {
    margin-top: var(--space-10);
    padding: var(--space-8);
    background: linear-gradient(135deg, white 0%, #fafbff 100%);
    border-radius: var(--rounded-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.results-section h3 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--info));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.price-card {
    background: linear-gradient(135deg, white 0%, #f8faff 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--rounded-2xl);
    padding: var(--space-8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--info));
}

.price-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.price-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.price-card:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Price Card Content */
.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--gray-100);
}

.service-name {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.service-delivery {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.service-delivery i {
    color: var(--primary);
}

.price-display {
    text-align: right;
}

.price-amount {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1;
}

.price-currency {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    font-weight: 600;
    margin-left: var(--space-1);
}

.price-card-body {
    margin-bottom: var(--space-8);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    font-weight: 500;
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

/* Price Card Actions */
.price-card-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.select-service-btn {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--rounded-xl);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.select-service-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.select-service-btn:hover::before {
    width: 300px;
    height: 300px;
}

.select-service-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.select-service-btn:active {
    transform: translateY(0);
}

.quick-select-btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--rounded-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.quick-select-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-3);
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
}

.toast-message {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-800);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: var(--font-size-sm);
    padding: var(--space-2);
    border-radius: var(--rounded);
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Toast Types */
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--info); }

.toast-success .fas { color: var(--success); }
.toast-error .fas { color: var(--error); }
.toast-warning .fas { color: var(--warning); }
.toast-info .fas { color: var(--info); }

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: var(--rounded-2xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
}

.close-btn {
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--rounded);
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-end;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

/* Draft Indicator */
.draft-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-4);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--rounded-lg);
    margin-bottom: var(--space-4);
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Address Cards */
.address-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--rounded-xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.address-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.address-card-header {
    background: var(--gray-50);
    padding: var(--space-5);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-card-header h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
}

.address-card-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-icon {
    background: white;
    border: 1px solid var(--gray-300);
    width: 36px;
    height: 36px;
    border-radius: var(--rounded-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

.btn-icon:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon.delete {
    border-color: var(--error);
    color: var(--error);
}

.btn-icon.delete:hover {
    background: var(--error);
    color: white;
}

.address-card-body {
    padding: var(--space-5);
}

.address-card-body p {
    margin: var(--space-2) 0;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.address-card-body strong {
    color: var(--gray-900);
    font-size: var(--font-size-base);
}

/* Auth Required States */
.auth-required {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

.auth-required i {
    font-size: var(--font-size-4xl);
    color: var(--gray-400);
    margin-bottom: var(--space-6);
}

.auth-required h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: var(--space-4);
}

.login-required-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--rounded-xl);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: var(--space-6);
    box-shadow: var(--shadow-md);
}

.login-required-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-content {
        margin-left: 280px;
    }
    
    .sidebar {
        transform: translateX(0);
    }
    
    .mobile-header {
        display: none;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: var(--space-4);
    }
    
    .calculator-container {
        padding: var(--space-6);
        border-radius: var(--rounded-xl);
    }
    
    .form-section {
        padding: var(--space-4);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .package-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-cards {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .toast-container {
        top: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
    
    /* Mobile sidebar adjustments */
    .sidebar-footer {
        padding: var(--space-4);
    }
    
    .user-info {
        padding: var(--space-3);
        margin-bottom: var(--space-3);
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .username {
        font-size: var(--font-size-sm);
    }
    
    .logout-btn {
        padding: var(--space-2);
        font-size: var(--font-size-xs);
    }
    
    .login-btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: var(--font-size-2xl);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .package-inputs {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .package-item {
        padding: var(--space-4);
    }
    
    .calculate-btn {
        font-size: var(--font-size-lg);
        padding: var(--space-4);
    }
    
    .price-cards {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .price-card {
        padding: var(--space-6);
    }
    
    .price-card-header {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .service-name {
        font-size: var(--font-size-lg);
    }
    
    .price-amount {
        font-size: var(--font-size-2xl);
    }
    
    .select-service-btn,
    .quick-select-btn {
        padding: var(--space-4);
        font-size: var(--font-size-sm);
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-header,
    .toast-container,
    .btn,
    button {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-section {
        display: block !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gray-50: #ffffff;
        --gray-100: #f0f0f0;
        --gray-900: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}