@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #1a2a3a;
    --secondary: #2c3e50;
    --accent: #d4af37;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --bg-main: #f8f9fa;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header img {
    max-width: 150px;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    padding: 5px 20px;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 400;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.sidebar-menu a i {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    transition: all 0.3s ease;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.language-toggle a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s;
}

.language-toggle a:hover {
    background: var(--primary);
    color: white;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.intro-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.search-section {
    background: #f1f3f5;
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
}

/* Reusing elements from homepage for consistency */
input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
}

button.bouton {
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

button.bouton:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-header img,
    .sidebar-menu span {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #333;
}

.results-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--primary);
}

.results-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.results-table tr:hover td {
    background: #f1f3f5;
}

.clickable-row {
    cursor: pointer;
}

.results-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.results-table a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Pagination Premium Pills */
.pagination-wrapper {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.paginate {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.paginate a,
.paginate span {
    padding: 10px 22px;
    border-radius: 50px;
    /* Style pill */
    text-decoration: none;
    color: var(--primary);
    background: white;
    border: 1px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.paginate a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.25);
}

.paginate .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.paginate .inactive {
    background: #f5f5f5;
    color: #bbb;
    border-color: #eee;
    cursor: not-allowed;
    box-shadow: none;
}

/* Page Control Selects */
.page-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.page-controls select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    background: #fff;
    font-size: 0.85rem;
}