/**
 * Oumma Contact - Liquid Glass Design System v9.5.7
 * Inspired by Apple iOS/visionOS glassmorphism
 * True Liquid Glass with depth and fluidity
 */

/* ═══════════════════════════════════════════════════════════
   LIQUID GLASS VARIABLES
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Liquid Glass Core */
    --liquid-glass-bg: rgba(255, 255, 255, 0.45);
    --liquid-glass-bg-hover: rgba(255, 255, 255, 0.55);
    --liquid-glass-blur: blur(40px) saturate(200%);
    --liquid-glass-border: rgba(255, 255, 255, 0.35);
    --liquid-glass-border-strong: rgba(255, 255, 255, 0.5);
    --liquid-glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.05) 100%);
    --liquid-glass-shadow: 
        0 8px 40px -8px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 2px 0 rgba(255, 255, 255, 0.4) inset,
        0 -1px 0 rgba(0, 0, 0, 0.04) inset;
    
    /* Glass Tints */
    --glass-tint-warning: rgba(251, 191, 36, 0.18);
    --glass-tint-success: rgba(16, 185, 129, 0.18);
    --glass-tint-danger: rgba(239, 68, 68, 0.18);
    --glass-tint-info: rgba(59, 130, 246, 0.18);
    --glass-tint-purple: rgba(139, 92, 246, 0.18);
}

/* ═══════════════════════════════════════════════════════════
   LIMIT WARNING - LIQUID GLASS REDESIGN
   ═══════════════════════════════════════════════════════════ */
.oumc-limit-warning {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px !important;
    margin-bottom: 28px;
    
    /* Liquid Glass Effect */
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 100%),
        var(--glass-tint-warning);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Border & Radius */
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    
    /* Shadow & Depth */
    box-shadow: 
        0 12px 48px -12px rgba(245, 158, 11, 0.25),
        0 4px 16px -4px rgba(0, 0, 0, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03) !important;
    
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.oumc-limit-warning:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 56px -12px rgba(245, 158, 11, 0.3),
        0 8px 24px -8px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03) !important;
}

/* Top highlight reflection */
.oumc-limit-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

/* Badge Icon */
.oumc-limit-warning-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(251,191,36,0.3) 0%, rgba(245,158,11,0.2) 100%);
    border-radius: 14px;
    border: 1px solid rgba(251,191,36,0.3);
    box-shadow: 
        0 4px 12px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.5);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.oumc-limit-warning-icon {
    font-size: 22px;
    line-height: 1;
}

/* Content */
.oumc-limit-warning-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.oumc-limit-warning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.oumc-limit-warning-title {
    font-weight: 700;
    font-size: 15px;
    color: #92400e;
    letter-spacing: -0.01em;
}

.oumc-limit-warning-percent {
    font-weight: 800;
    font-size: 13px;
    color: #d97706;
    background: rgba(251,191,36,0.2);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Progress Bar - Liquid Style */
.oumc-limit-warning-progress {
    height: 6px;
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.oumc-limit-warning-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
    position: relative;
}

.oumc-limit-warning-text {
    font-size: 13px;
    color: #a16207;
    font-weight: 500;
}

/* CTA Button - Liquid Glass */
.oumc-limit-warning-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(217, 119, 6, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.oumc-limit-warning-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(217, 119, 6, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.4);
    color: #fff !important;
}

.oumc-limit-warning-btn svg {
    transition: transform 0.3s ease;
}

.oumc-limit-warning-btn:hover svg {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM DISABLED OPTIONS - LÉGÈREMENT GRISÉ (PAS FLOUTÉ!)
   ═══════════════════════════════════════════════════════════ */
/* Options Premium désactivées - visible mais grisé léger */
.oumc-tool-pro-disabled,
.oumc-smtp-disabled-overlay,
.oumc-design-disabled-overlay {
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
    /* PAS DE BLUR! */
}

/* Badge Premium */
.oumc-tool-pro-wrapper {
    position: relative;
    display: inline-block;
}

.oumc-tool-pro-wrapper > span {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
}

/* Input désactivé avec style léger */
input[disabled],
select[disabled],
textarea[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
}

/* ═══════════════════════════════════════════════════════════
   FIX BOUTONS ACTIONS - RESPONSIVE POUR TOUTES LES LANGUES
   ═══════════════════════════════════════════════════════════ */
.wp-list-table .button,
#messages-table .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px !important;
    min-height: 36px;
    white-space: nowrap;
    font-size: 13px !important;
    border-radius: 8px !important;
    vertical-align: middle;
}

/* Colonne Actions - flex row pour aligner les boutons */
.wp-list-table td:last-child,
#messages-table td:last-child {
    min-width: 180px;
}

/* Fix pour les boutons View/Voir/Просмотр */
.oumc-open-msg,
.button.button-primary.oumc-open-msg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
}

/* Bouton supprimer */
.wp-list-table a.button[style*="color:#d63638"],
#messages-table a.button[style*="color:#d63638"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    min-width: 40px;
}

/* Fix RTL pour Arabic */
html[dir="rtl"] .wp-list-table td:last-child,
html[dir="rtl"] #messages-table td:last-child {
    direction: rtl;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .wp-list-table .button,
    #messages-table .button {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}
