﻿.admin-bg {
    background: #eef1f5;
}

/* Primary buttons aligned with sidebar */
.btn-admin-primary {
    background: #5569ff;
    color: white;
    border: none;
    border-radius: 6px;
}

    .btn-admin-primary:hover {
        background: #3f51f7;
        color: white;
    }

/* Tag grid cards */
.tag-grid-card {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    transition: 0.2s ease;
    background: #ffffff;
}

    .tag-grid-card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }

/* Badges */
.badge-published {
    background: #d1fae5;
    color: #065f46;
}

.badge-draft {
    background: #e5e7eb;
    color: #374151;
}

.badge-archived {
    background: #dbeafe;
    color: #1e3a8a;
}

/* Ajoutez ces styles dans votre studybuddy.css */

/* Sticky sidebar sur desktop */
@media (min-width: 992px) {
    .sticky-top {
        position: sticky;
        top: 20px;
    }
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-group {
        width: 100%;
    }

    .btn {
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* Sur mobile, la sidebar passe en dessous */
    .col-lg-4 {
        order: 2;
    }

    .col-lg-8 {
        order: 1;
    }
}

/* Styles pour le preview */
.tag-preview {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

    .tag-preview:hover {
        border-color: #3a86ff;
        background: #f8f9fa;
    }

/* Animation de focus */
.mb-4.focused {
    transition: all 0.3s ease;
}

    .mb-4.focused .form-control,
    .mb-4.focused .form-select {
        box-shadow: 0 0 0 0.25rem rgba(58, 134, 255, 0.25);
    }

/* Dégradé pour l'en-tête */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3a86ff 0%, #1d6ff6 100%);
}

/* Bouton de copie */
.copy-slug-btn {
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0.5rem 1rem;
}

    .copy-slug-btn:hover {
        background-color: #e9ecef;
    }

/* Conseils dans la sidebar */
.list-unstyled li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .list-unstyled li:last-child {
        border-bottom: none;
    }



/* Wrapper */
.admin-breadcrumb-wrapper {
    background: #f8f9fc;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid #e4e6ef;
    margin-bottom: 20px;
}

/* Base */
.admin-breadcrumb {
    background: transparent;
    font-size: 0.875rem;
}

    /* Liens */
    .admin-breadcrumb .breadcrumb-item a {
        color: #5c6ac4;
        font-weight: 500;
        text-decoration: none;
        transition: 0.2s ease-in-out;
    }

        .admin-breadcrumb .breadcrumb-item a:hover {
            color: #3f51b5;
        }

    /* Séparateur custom */
    .admin-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        color: #9aa0ac;
        font-size: 0.9rem;
    }

    /* Active */
    .admin-breadcrumb .breadcrumb-item.active {
        color: #1f2937;
        font-weight: 600;
    }

.admin-breadcrumb-wrapper {
    background: linear-gradient(90deg, #eef2ff, #f9fafb);
    border: 1px solid #e0e7ff;
}

body {
    background: #f6f8fb;
    color: #111827;
}

.wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .06), transparent 28rem),
        #f6f8fb;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1010;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

.brand-small {
    color: #111827;
    font-weight: 800;
    letter-spacing: 0;
}

.user-info {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
}

.sidebar-desktop {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 276px;
    overflow-y: auto;
    background: #0f172a;
    color: #e5e7eb;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-offcanvas {
    position: static;
    width: 100%;
    min-height: 100%;
}

.sidebar-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
}

.sidebar-inner h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 0 8px;
}

.sidebar-section-title {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 8px 6px;
}

.sidebar-nav-link,
.sidebar-sub-link {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.sidebar-nav-link {
    justify-content: space-between;
    padding: 10px 11px;
    font-size: 14px;
    font-weight: 750;
}

.sidebar-sub-link {
    padding: 8px 10px;
    margin: 2px 0;
    font-size: 13px;
    font-weight: 650;
}

.sidebar-nav-link:hover,
.sidebar-sub-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-nav-link.active,
.sidebar-nav-link.parent-active,
.sidebar-sub-link.active {
    background: #2563eb;
    color: #fff;
}

.sidebar-inner hr {
    border-color: rgba(255, 255, 255, .10);
    opacity: 1;
}

.main-content {
    min-height: calc(100vh - 64px);
    padding: 22px 24px 40px;
}

.admin-breadcrumb-wrapper {
    max-width: 1380px;
    margin: 0 auto 18px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(15, 23, 42, .08);
}

.admin-breadcrumb {
    font-size: 13px;
}

@media (min-width: 768px) {
    .topbar,
    .main-content {
        margin-left: 276px;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        padding: 10px 14px;
    }

    .main-content {
        padding: 16px 14px 28px;
    }

    .sidebar-desktop {
        position: static;
        width: 100%;
    }
}
