/* Gradient background */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #dcdcdc 0%, #cad3e4 100%);
    background: linear-gradient(180deg, #fff1eb 0%, #ace0f9 100%);
    background: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
    
    background-image: linear-gradient(180deg, #3ab5b0 0%, #3d99be 31%, #56317a 100%);
    background-image: linear-gradient(0deg, #243949 0%, #517fa4 100%);
    background-image: linear-gradient(to top, #121212 0%, #121212 100%);
    z-index: -1;
}

/* Card avec effet glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

/* Effet de profondeur pour les cards */
.depth-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Style pour les avatars connectés */
.avatar-connected::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
}

/* Styles pour les boutons circulaires */
.circle-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Style pour le conteneur principal */
.main-container {
    margin-left: 4rem;
    padding: 1rem;
}

/* Styles pour les éléments de navigation */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}


/* Style pour le conteneur des avatars */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    border: 2px solid white;
    margin-left: -0.5rem;
    transition: transform 0.2s ease;
}

.avatar-group img:hover {
    transform: translateY(-2px);
}

/* Styles pour les sections de contenu */
.content-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Style pour le header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem 2rem;
}

/* Nouveaux styles pour le header */
header button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header nav {
    margin: 0 auto;
    padding: 0 1rem;
}

header nav a {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

header nav a.bg-black {
    font-weight: 600;
    padding: 0.25rem 1rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}

/* Style pour la sidebar */
.fixed.left-0.top-0 {
    top: 72px !important;
    z-index: 40;
}

/* Style pour le contenu principal */
main.ml-16 {
    padding-top: 88px !important;
}

/* Loader */
.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour la barre de progression */
#progressContainer {
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
    background-color: rgba(229, 231, 235, 0.7);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease;
}

#progressBar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    background-size: 200% 100%;
    animation: gradientShift 2s linear infinite;
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Styles pour les médias LinkedIn */
.linkedin-media {
    max-height: 400px !important;
    overflow: hidden;
}

.linkedin-media img,
.linkedin-media video {
    max-height: 400px !important;
    object-fit: contain !important;
}

.linkedin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    height: auto;
    max-height: none;
    width: 100%;
}

.linkedin-grid-item {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
}

.linkedin-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Layout des posts LinkedIn */
.linkedin-post-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    min-height: 0;
    min-width: 0;
}

.linkedin-post-content > div {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.linkedin-post-content > div:first-child {
    padding-right: 1rem;
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .linkedin-post-content {
        grid-template-columns: 1fr;
    }
    
    .linkedin-post-content > div:first-child {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

/* Prose styling */
.prose {
    max-width: none;
    line-height: 1.6;
    color: #374151;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose strong {
    color: #111827;
    font-weight: 600;
}

/* Styles pour les titres h2 dans Quill */
h2,
.prose h2, 
.ql-editor h2,
[class*="ql-"] h2,
div:not([class]) h2,
.bg-white h2 {
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 1.2em !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
    line-height: 1.3333333 !important;
    display: block !important;
    font-family: inherit !important;
}

/* Reset des styles Quill qui pourraient interférer */
.ql-editor *,
[class*="ql-"] * {
    white-space: normal !important;
}

/* Styles spécifiques pour les headers dans Quill */
h2[data-header="2"],
.ql-header[value="2"],
h2.ql-header {
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 1.5em !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
    line-height: 1.3333333 !important;
    display: block !important;
}

/* Styles pour le sous-menu dans le header */
.nav-item-with-submenu {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-item-with-submenu .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-item-with-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #4B5563;
    font-weight: 500;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    background-color: rgba(243, 244, 246, 0.8);
    color: #111827;
}

/* Styles pour la sidebar */
.sidebar {
    overflow: visible;
    will-change: width;
}

.sidebar-btn {
    height: 40px;
    position: relative;
}

.sidebar-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}
