/* Branding pour tabyby.online - Logo avec Tabyby */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    margin: 0 auto 16px !important;
    display: block !important;
    object-fit: contain;
}

/* Logo Tabyby - Version complète (pour pages de login/register) */
.tabyby-logo-full {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 auto;
    max-width: 400px;
    justify-content: center;
}

.tabyby-logo-full:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 98, 51, 0.25);
}

/* Logo Tabyby - Version compacte (pour utilisateur connecté) */
.tabyby-logo-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    margin: 0 auto;
    max-width: 150px;
    justify-content: center;
}

.tabyby-logo-compact:hover {
    transform: none;
    box-shadow: none;
}

/* Icône stéthoscope - Version complète */
.tabyby-logo-icon {
    font-size: 48px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    line-height: 1;
}

/* Icône stéthoscope - Version compacte */
.tabyby-logo-icon-compact {
    font-size: 24px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
    line-height: 1;
}

/* Conteneur logo - Version complète */
.tabyby-logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* Conteneur logo - Version compacte */
.tabyby-logo-container-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

/* Texte arabe - Version complète */
.tabyby-logo-text {
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    letter-spacing: 1px;
    direction: rtl;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.08);
    line-height: 1;
}

/* Texte arabe - Version compacte */
.tabyby-logo-text-compact {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
    letter-spacing: 0.5px;
    direction: rtl;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    line-height: 1;
}

/* Bandes du drapeau - Version complète */
.tabyby-logo-bars {
    display: flex;
    gap: 3px;
    height: 6px;
    width: 100%;
}

/* Bandes du drapeau - Version compacte */
.tabyby-logo-bars-compact {
    display: flex;
    gap: 2px;
    height: 3px;
    width: 100%;
}

.tabyby-logo-bar {
    flex: 1;
    border-radius: 3px;
}

.tabyby-logo-bar-green {
    background: #006233;
    box-shadow: 0 2px 4px rgba(0,98,51,0.3);
}

.tabyby-logo-bar-white {
    background: #FFFFFF;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabyby-logo-bar-red {
    background: #D21034;
    box-shadow: 0 2px 4px rgba(210,16,52,0.3);
}

/* Phrase dédiée aux utilisateurs de tabyby.online (uniquement pour pages non connectées) */
.tabyby-dedicated-text {
    text-align: center;
    margin-top: 1rem;
    color: #4b5563;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tabyby-dedicated-text strong {
    color: #006233;
    font-weight: 600;
}

/* Centrer le conteneur parent si nécessaire */
.auth-container,
.login-container,
[class*="auth"],
[class*="login"] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Assurer que le logo est centré dans tous les contextes */
.tabyby-logo,
.auth-logo .tabyby-logo {
    margin-left: auto;
    margin-right: auto;
}

/* Ajustements pour l'interface une fois connectée */
.tabyby-logo-compact {
    position: relative;
    z-index: 1;
}

/* Améliorer l'ajustement dans les vues de boîte de réception */
[class*="mailbox"],
[class*="Mailbox"] {
    display: flex;
    flex-direction: column;
}

/* Ajuster l'espacement pour le logo compact */
.tabyby-logo-compact + * {
    margin-top: 0.5rem;
}

/* Styles spécifiques pour le logo compact dans le header (utilisateur connecté) */
.mailbox-header .tabyby-logo-compact,
.header-content .tabyby-logo-compact,
[class*="header"] .tabyby-logo-compact {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 10;
}

/* Cacher le texte dédié une fois connecté */
body:has(.tabyby-logo-compact) .tabyby-dedicated-text,
.mailbox-header .tabyby-dedicated-text,
.header-content .tabyby-dedicated-text {
    display: none !important;
}

/* Ajuster le header pour le logo */
.mailbox-header,
.header-content {
    position: relative;
    padding-left: 140px;
}

/* Logo compact encore plus petit dans le header */
.mailbox-header .tabyby-logo-compact,
.header-content .tabyby-logo-compact {
    max-width: 100px;
    gap: 4px;
    padding: 2px 6px;
}

.mailbox-header .tabyby-logo-icon-compact,
.header-content .tabyby-logo-icon-compact {
    font-size: 18px !important;
}

.mailbox-header .tabyby-logo-text-compact,
.header-content .tabyby-logo-text-compact {
    font-size: 12px !important;
}

.mailbox-header .tabyby-logo-bars-compact,
.header-content .tabyby-logo-bars-compact {
    height: 2px !important;
    gap: 1px !important;
}
