/* Abstract Archive - Clean Design inspired by abstract-archive.org */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 2rem 0;
    text-align: center;
}

    .site-header .site-logo img {
/*        text-align: left;
        width: 10%;
        padding-left: 50px;*/
    }

.site-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Main content */
main {
    flex: 1;
    padding: 0;
}

/* Hero section */
.hero-section {
    background: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-note {
    font-size: 1rem;
    color: #888;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Search section */
.search-section {
    margin-top: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-button:hover {
    background: #0056b3;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 1rem;
}

/* Results section */
#contentResultSearch {
    background: #fff;
    margin-top: 2rem;
    min-height: 400px;
}

/* Container for results */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #ccc;
}

/* Table styles for results */
.table-responsive {
    margin: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 1rem;
    vertical-align: top;
}

/* Filter row in table */
.table-light {
    background: #f8f9fa;
}

.table-light th {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Form controls in table */
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.875rem;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
}

.btn-success-selected {
    background: #218838;
    border-color: #218838;
    color: #fff;
}

    .btn-success-selected:hover {
        background: #f8f9fa;
        color: #28a745;
        border-color: #28a745;
    }

.btn-outline-primary {
    background: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: #fff;
}

.btn-outline-primary-selected {
    background: #007bff;
    color: #fff;
}
    .btn-outline-primary-selected:hover {
        background: transparent;
        color: #007bff;
        border-color: #007bff;
    }

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: #fff;
}

.btn-outline-success {
    background: transparent;
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background: #28a745;
    color: #fff;
}

.btn-outline-bookedmarked {
    background: #28a745;
    color: #fff;
}
    .btn-outline-bookedmarked:hover {
        background: transparent;
        color: #28a745;
        border-color: #28a745;
    }


.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: #007bff;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-button {
        width: 100%;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-note {
        font-size: 0.875rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.25rem;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Bookmarked section */
#bookmarkedSection {
    background: #fff;
    margin-top: 2rem;
    padding: 2rem 0;
}

#bookmarkedSection h4 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.bookmarked-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.bookmarked-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.bookmark-header:hover {
    background: #f8f9fa;
}

.bookmark-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    flex-grow: 1;
    margin-left: 10px;
}

.bookmark-toggle-icon {
    color: #6c757d;
    font-size: 0.9em;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.bookmark-content {
    line-height: 1.6;
    padding: 1rem 1.5rem;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e9ecef;
}

.bookmark-content h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.bookmark-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.bookmark-content .authors {
    font-style: italic;
    color: #888;
    margin-bottom: 0.5rem;
}

.bookmark-content .category {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.bookmark-content .conference {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Animation pour l'ajout/suppression de bookmarks */
.bookmarked-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les messages d'erreur dans les bookmarks */
.bookmarked-item.alert {
    border-left: 4px solid #ffc107;
}

.bookmarked-item.alert .bookmark-content {
    color: #856404;
}