/* Modal Overlay Display Fix */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}
.modal-overlay.show {
    display: flex;
}
/* Dashboard Specific Styles */
.dashboard-section {
    animation: fadeIn 0.5s ease-in-out;
}

/* Dashboard Navigation - Responsive Styles */
.dashboard-nav-container {
    position: relative;
    margin-bottom: 2rem;
}

.dashboard-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .dashboard-nav-tabs {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0.75rem;
    }
}

.dashboard-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    background: #f3f4f6;
    color: #6b7280;
    flex: 1;
    min-width: 0;
}

@media (min-width: 769px) {
    .dashboard-nav-btn {
        flex: none;
        min-width: 160px;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dashboard-nav-btn {
        padding: 1rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .dashboard-nav-btn i {
        margin-right: 0.5rem !important;
    }
}

.dashboard-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.15);
    background: #e5e7eb;
    color: #374151;
}

.dashboard-nav-btn.active {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    border-color: #16a34a;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
}

.dashboard-nav-btn.active:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    transform: translateY(-2px);
}

.dashboard-nav-btn::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.5s;
}

.dashboard-nav-btn:hover::before {
    left: 100%;
}

.dashboard-nav-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .dashboard-nav-btn i {
        margin-right: 0.75rem;
    }
}

/* Mobile Navigation Toggle */
@media (max-width: 768px) {
    .dashboard-nav-mobile-toggle {
        display: block;
        width: 100%;
        background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
        color: white;
        padding: 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
        border: none;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .dashboard-nav-mobile-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    }
    
    .dashboard-nav-tabs {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        padding: 0 0.75rem;
        margin: 0;
    }
    
    .dashboard-nav-tabs.show {
        max-height: 500px;
        padding: 1rem 0.75rem;
        margin-top: 0.5rem;
    }
}

/* Dashboard Header Mobile Improvements */
@media (max-width: 640px) {
    .dashboard-header {
        padding: 0.75rem 1rem;
    }
    
    .dashboard-header .flex {
        gap: 0.5rem;
    }
    
    .dashboard-header .min-h-16 {
        min-height: auto;
    }
    
    .dashboard-header .py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    #userWelcome {
        max-width: 150px;
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #planStatus {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #planStatus .bg-gradient-to-r {
        padding: 0.5rem 0.75rem;
    }
    
    #planName, #planExpiry {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    /* Ensure header content doesn't wrap awkwardly */
    .dashboard-header .flex-col {
        align-items: stretch;
    }
    
    .dashboard-header .justify-between {
        justify-content: flex-start;
    }
    
    /* Better mobile spacing */
    .dashboard-header .space-y-2 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 0.5rem 0.75rem;
    }
    
    .dashboard-header .text-lg {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .dashboard-header .text-xl {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .dashboard-header .mr-2,
    .dashboard-header .mr-3 {
        margin-right: 0.5rem;
    }
    
    .dashboard-header .py-3 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    #userWelcome {
        max-width: 100px;
        font-size: 0.8rem;
    }
    
    /* Adjust gaps for very small screens */
    .dashboard-header .gap-3 {
        gap: 0.5rem;
    }
    
    .dashboard-header .space-x-3 {
        gap: 0.5rem;
    }
    
    .dashboard-header .space-x-3 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    .dashboard-nav-mobile-toggle {
        display: none;
    }
}

/* Dashboard Section Styles */
.dashboard-section {
    animation: fadeInUp 0.5s ease-out;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-section.hidden {
    display: none !important;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        justify-content: center;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .dashboard-nav-container {
        margin: 0 -1rem 2rem -1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .stats-number {
        font-size: 1.875rem;
    }
    
    .card-modern {
        margin: 0 -0.5rem;
        border-radius: 1rem;
    }
}

.service-item {
    transition: all 0.3s ease;
    border: 2px dashed #e5e7eb;
    background: #f9fafb;
}

.service-item:hover {
    border-color: #16a34a;
    background: white;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.1);
}

.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    outline: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 24px 32px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    outline: none;
}

.form-button {
    width: 100%;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.client-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #16a34a;
}

.stats-card {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stats-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.invoice-preview {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.invoice-preview:hover {
    border-color: #16a34a;
    background: white;
}

.total-summary {
    background: linear-gradient(135deg, #f0f9f4 0%, #ecfdf5 100%);
    border: 2px solid #16a34a;
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.total-summary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-radius: 16px;
    z-index: -1;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-radius: 2px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    color: white;
}

.btn-secondary {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #16a34a;
    color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.1);
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #374151;
}

.empty-state p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-container {
    position: relative;
    margin-bottom: 24px;
}

.search-container input {
    padding-left: 48px;
}

.search-container::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 1;
}

/* Plan Management Styles */
.plan-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::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;
}

.plan-card:hover::before {
    left: 100%;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-highlight {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
}

.plan-popular {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.plan-status-expired {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.plan-status-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

.plan-status-active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

:root {
    --primary-color: #16a34a; /* Green-600 */
    --secondary-color: #22c55e; /* Green-500 */
    --accent-color: #4ade80; /* Green-400 */
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --dark-bg: #111827;
    --gradient-1: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    --gradient-2: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    --gradient-3: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-modern {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-modern:hover::before {
    opacity: 1;
}

.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.3);
}

.btn-modern {
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modern::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.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.4);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.1);
    animation: float 20s infinite linear;
}

.shape:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 10%; animation-delay: 0s; }
.shape:nth-child(2) { width: 120px; height: 120px; top: 60%; right: 10%; animation-delay: 5s; }
.shape:nth-child(3) { width: 60px; height: 60px; bottom: 20%; left: 60%; animation-delay: 10s; }
.shape:nth-child(4) { width: 100px; height: 100px; top: 30%; right: 30%; animation-delay: 15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-up {
    animation: fade-up 0.8s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fade-in-scale 0.6s ease-out forwards;
}

.stagger-animation {
    animation-delay: 0.1s;
}

.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Navigation Enhancement */
.nav-glassmorphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feature icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0.1;
    border-radius: 20px;
}

/* Pricing cards enhancement */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-2);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 24px 24px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #eb1414;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.modal-close:hover {
    background: #ff3224;
    color: #fff;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-checkbox:hover {
    border-color: var(--primary-color);
}

.form-checkbox:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-button {
    width: 100%;
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

.modal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modal-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.info-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.info-box h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-box p {
    color: #374151;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Typography */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .card-modern:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header, .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .modal-header, .modal-body {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .no-print {
        display: none !important;
    }
}

/* Toast Notification Styles */
#toastContainer {
    pointer-events: none;
}

#toastContainer > div {
    pointer-events: auto;
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

.toast-warning {
    background-color: #f59e0b;
}

.toast-info {
    background-color: #3b82f6;
}

/* Ensure toasts appear above modals */
#toastContainer {
    z-index: 9999 !important;
}

/* Animation classes for toasts */
.toast-enter {
    transform: translateX(100%);
    opacity: 0;
}

.toast-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}

.toast-exit {
    transform: translateX(0);
    opacity: 1;
}

.toast-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}
