
/* Base styles */
html {
    scroll-behavior: smooth;
}
/* Hero section */
.hero-section {
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: -1;
}

.dark .hero-section::before {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.8) 100%);
}
/* Navbar styles */
.custom-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dark .custom-navbar {
    background-color: #1f2937;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}
/* Footer styles */
.custom-footer {
    background: linear-gradient(to right, #1e40af, #1e3a8a);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.dark .custom-footer {
    background: linear-gradient(to right, #111827, #1f2937);
}

.custom-footer h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.custom-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.custom-footer a:hover {
    color: white;
    text-decoration: underline;
}
/* Background patterns */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #374151;
}

.dark body {
    color: #e5e7eb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Custom styles for tables */
table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

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

.dark th, .dark td {
    border-bottom-color: #374151;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* Form inputs */
input, textarea, select {
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dark input:focus, .dark textarea:focus, .dark select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Buttons */
button, .btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:active, .btn:active {
    transform: translateY(1px);
}

button.ripple, .btn.ripple {
    position: relative;
    overflow: hidden;
}

button.ripple:after, .btn.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

button.ripple:active:after, .btn.ripple:active:after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}
/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dark .card {
    background-color: #1f2937;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}
/* Nav links */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s;
}

.dark .nav-link {
    color: #9ca3af;
}

.nav-link:hover {
    color: #1e40af;
}

.dark .nav-link:hover {
    color: #60a5fa;
}

.nav-link.active {
    color: #1e40af;
    font-weight: 600;
}

.dark .nav-link.active {
    color: #60a5fa;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #1e40af;
}

.dark .nav-link.active::after {
    background-color: #60a5fa;
}
/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: #e5e7eb;
}

.dark .theme-toggle:hover {
    background-color: #374151;
}

.theme-icon {
    width: 1rem;
    height: 1rem;
}

/* Mobile theme toggle */
.navbar-mobile-theme-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.navbar-mobile-theme-toggle:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.dark .navbar-mobile-theme-toggle:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.navbar-mobile-theme-toggle .theme-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: inherit;
}

.navbar-mobile-theme-toggle span {
    font-weight: 500;
    color: inherit;
}

.border-divider {
    border-top-color: rgba(209, 213, 219, 0.5);
}

.dark .border-divider {
    border-top-color: rgba(55, 65, 81, 0.5);
}
