body {
    font-family: 'Helvetica', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.bg-custom-light {
    background-color: #F4F7FB;
    background-image: 
        radial-gradient(at 40% 20%, rgba(79, 70, 229, 0.03) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(236, 72, 153, 0.03) 0px, transparent 50%);
    color: #333;
}

.card {
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: translateX(100%);
}

body.dark-mode {
    background-color: #111827;
    background-image: 
        radial-gradient(at 40% 20%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
}

body.dark-mode .btn-primary {
    background-color: #6a5acd;
}

body.dark-mode .btn-primary:hover {
    background-color: #483d8b;
}

body.dark-mode .btn-secondary {
    background-color: #333;
    color: #f0f0f0;
}

body.dark-mode .btn-secondary:hover {
    background-color: #444;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
    color: #fff;
}

.btn-primary {
    background-color: #4F46E5;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.btn-primary:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.btn-secondary {
    background-color: #f3f4f6;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-secondary:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::after, .btn-secondary:hover::after {
    left: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 4px 6px rgba(0, 0, 0, 0.06);
}

h1, h2, h3 {
    font-weight: 700;
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1024px) {
    .container {
        padding: 4rem 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    .btn-primary, .btn-secondary {
        padding: 1.25rem;
    }

    .btn-primary {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 3rem 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .btn-primary, .btn-secondary {
        padding: 1rem;
    }

    .btn-primary {
        font-size: 0.9rem;
    }

    .space-y-6 > div {
        margin-bottom: 1.5rem;
    }
}

footer {
    background: linear-gradient(to right, #4B5563, #374151);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: white;
    font-size: 1rem;
}

footer a {
    color: #F3F4F6;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

footer a:hover::after {
    transform: scaleX(1);
}

select {
    transition: all 0.2s ease;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                    5px 5px;
    background-repeat: no-repeat;
}

select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

td:nth-child(2) {
    text-align: right;
}

th:nth-child(2) {
    text-align: right;
}

th {
    background-color: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(4px);
    font-weight: 600;
}

body.dark-mode th {
    background-color: rgba(55, 65, 81, 0.8);
}

body.dark-mode td, body.dark-mode th {
    border-bottom: 1px solid #374151;
}

tr:hover td {
    background-color: rgba(249, 250, 251, 0.04);
}

:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3),
                0 0 0 6px rgba(79, 70, 229, 0.1);
    transition: box-shadow 0.3s ease;
}
