:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

body {
    background: radial-gradient(circle at top left, #f3f4f6, #e5e7eb);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    padding-bottom: 3rem;
}

/* Header Sections */
.header-bg {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    height: 200px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.header-section {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    padding: 4rem 0 6rem;
    color: white;
    margin-bottom: -4rem;
}

.header-section h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Containers */
.glass-container,
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    padding: 2rem;
}

.project-card {
    margin-top: 100px;
    padding: 2.5rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.search-box input {
    border: none;
    padding: 0.6rem;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

/* Project Rows (Index) */
.project-row {
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.project-row:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.05);
    color: inherit;
}

.project-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Meta & Badges */
.meta-item,
.meta-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-small {
    font-size: 0.85rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge,
.status-pill {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-vu,
.status-vu {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-interessant,
.status-interessant {
    background: #fef3c7;
    color: #92400e;
}

.badge-repondu,
.status-repondu {
    background: #dcfce7;
    color: #166534;
}

.badge-non-vu,
.status-non-vu {
    background: #f1f5f9;
    color: #475569;
}

/* Description & Response Boxes */
.description-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    line-height: 1.6;
    color: #334155;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#response-container {
    display: none;
    background: #f8fafc;
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    white-space: pre-wrap;
    font-family: inherit;
    color: #334155;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-modern {
    background: var(--accent-color);
    border: none;
    color: white;
}

.btn-primary-modern:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary-modern {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-secondary-modern:hover {
    background: #f8fafc;
}

/* Forms */
.form-container {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 2rem;
}

.form-select-modern {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    outline: none;
}

/* Utils */
.fav-star {
    color: #fbbf24;
    fill: #fbbf24;
}

.external-link {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.external-link:hover {
    text-decoration: underline;
}

.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

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

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

.pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
}

.pagination .active .page-link {
    background: var(--accent-color);
    color: white;
}

.mt-n4 {
    margin-top: -4rem !important;
}

.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.badge-modern:hover {
    background: #f8fafc;
    color: var(--accent-color);
    transform: translateY(-1px);
}

.badge-modern.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Full Page Loader */
.full-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loader-content {
    text-align: center;
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}