:root {
    --color-primary: #2a1f4a;
    --color-primary-dark: #1a1230;
    --color-accent: #6b4fa1;
    --color-light: #f8f7fc;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-border: #e0e0e0;
    --radius-default: 0.375rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.border-left {
    border-left: 4px solid;
}

.border-dark {
    border-color: var(--color-primary) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--color-border) !important;
}

.border-secondary {
    border-color: #495057 !important;
}

.navbar-brand {
    color: var(--color-primary) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-light {
    background-color: #ffffff !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--color-text) !important;
    transition: color 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--color-accent) !important;
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
    font-weight: 600;
}

.hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(42, 31, 74, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

.hero-content {
    color: #ffffff;
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        height: 40vh;
    }
}

.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-header {
    background: linear-gradient(135deg, #f8f7fc 0%, #ffffff 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: var(--color-text-muted);
    text-shadow: none;
}

.card {
    border: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(42, 31, 74, 0.12) !important;
    transform: translateY(-2px);
}

.card-title {
    color: var(--color-primary);
    font-weight: 600;
}

.table-light {
    background-color: var(--color-light) !important;
}

.table thead th {
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(107, 79, 161, 0.05);
}

.btn-dark {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-dark:hover {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 31, 74, 0.25);
}

.btn-outline-dark {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    font-weight: 600;
}

.btn-outline-dark:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
}

.btn-sm {
    font-size: 0.875rem;
}

.bg-light {
    background-color: var(--color-light) !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-dark {
    background-color: var(--color-primary) !important;
}

.text-light {
    color: #f8f7fc !important;
}

footer {
    background-color: var(--color-primary) !important;
    color: #ffffff;
}

footer h6 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-none:hover {
    text-decoration: underline !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: var(--radius-default);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
}

.legal-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 1.5rem 0;
    position: sticky;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #ffffff;
}

/* Form Styling */
.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(107, 79, 161, 0.25);
}

.form-check-input {
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner p {
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .row {
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
