/* ==========================================================================
            LDI MANAGER 
   ==========================================================================
   1. Variables & Global
   2. Composants UI (Boutons, Cartes, Badges)
   3. Dashboard (Tuiles)
   4. Page Profil (Mon Compte)
   5. Page Établissement (Visu Client)
   6. CRUD Machines & Tables (Admin/Tech)
   7. Forum & News (Overrides)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES & GLOBAL
   ========================================================================== */
:root {
    /* Palette LDI */
    --ldi-blue: #0056b3;         /* Bleu Principal */
    --ldi-blue-dark: #004494;    /* Bleu Foncé (Hover) */
    --ldi-blue-light: #e0f2fe;   /* Bleu très clair (Fonds) */
    --ldi-accent: #0c79ad;       /* Bleu Cyan (Titres) */
    
    /* Couleurs Système */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    
    /* UI */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Fix global pour Select2 (Barre de recherche) */
.select2-container { width: 100% !important; margin-top: 5px; display: block; }
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    border: 1px solid #ddd !important; border-radius: var(--radius-sm) !important;
    min-height: 42px !important; padding: 5px !important; background-color: #fff !important;
}
/* Tags Select2 */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--ldi-blue-light) !important;
    border: 1px solid #bce0fd !important; color: var(--ldi-blue) !important;
}

/* ==========================================================================
   2. COMPOSANTS UI
   ========================================================================== */

/* Boutons Modernes */
.ldi-btn, .btn-compte {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm); border: none; cursor: pointer;
}

.ldi-btn-primary, .btn-compte {
    background: linear-gradient(135deg, var(--ldi-blue) 0%, var(--ldi-blue-dark) 100%);
    color: #ffffff !important;
}
.ldi-btn-primary:hover, .btn-compte:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #0062cc 0%, var(--ldi-blue) 100%);
}

.ldi-btn-secondary { background-color: white; color: #333 !important; border: 1px solid #dcdcdc; }
.ldi-btn-secondary:hover { background-color: #f3f4f6; transform: translateY(-2px); }

.ldi-btn-danger { background: transparent; color: #ef4444; }
.ldi-btn-danger:hover { background: #fef2f2; color: #dc2626; }

/* Tableaux Standards */
.ldi-table { width: 100%; border-collapse: collapse; }
.ldi-table th { background-color: var(--ldi-blue); color: #fff; font-weight: 600; padding: 10px 12px; text-align: left; }
.ldi-table td { padding: 10px 12px; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
.ldi-table tr:nth-child(even) { background-color: #f8f9fa; }
.ldi-table tr:hover { background-color: #e6f0ff; }


/* ==========================================================================
   3. DASHBOARD (Tuiles)
   ========================================================================== */
.ldi-dashboard-container { max-width: 1200px; margin: 0 auto; padding: 20px 0; font-family: 'Segoe UI', sans-serif; }
.ldi-welcome-header h2 { font-size: 28px; color: var(--text-main); margin-bottom: 5px; }
.ldi-welcome-header p { color: var(--text-muted); }

.ldi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.ldi-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 25px; display: flex; align-items: center; text-decoration: none !important;
    transition: all 0.3s ease; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.ldi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #d1d5db; }

.ldi-card-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0;
}
.ldi-card-icon .dashicons { font-size: 32px; width: 32px; height: 32px; }

.ldi-card-content h3 { margin: 0 0 5px 0; font-size: 18px; color: var(--text-main); }
.ldi-card-content p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.4; }
.ldi-card-arrow { margin-left: auto; color: #d1d5db; transition: color 0.3s; }
.ldi-card:hover .ldi-card-arrow { color: var(--ldi-blue); }


/* ==========================================================================
   4. PAGE PROFIL (Mon Compte)
   ========================================================================== */
.ldi-profile-wrapper { display: flex; justify-content: center; padding: 40px 20px; background-color: var(--bg-gray); }
.ldi-profile-card {
    background: white; width: 100%; max-width: 450px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover); overflow: hidden; border: 1px solid var(--border-color); text-align: center;
}

.ldi-profile-header { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); padding: 30px 20px; border-bottom: 1px solid #e0e7ff; }
.ldi-avatar-container {
    width: 120px; height: 120px; margin: 0 auto 15px; border-radius: 50%;
    border: 5px solid white; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.ldi-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ldi-avatar-edit-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 86, 179, 0.8); color: white; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.ldi-editable-avatar:hover .ldi-avatar-edit-overlay { opacity: 1; cursor: pointer; }

.ldi-profile-body { padding: 20px; }
.ldi-info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--bg-gray); }
.ldi-info-row:last-child { border-bottom: none; }
.ldi-label { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.ldi-value { color: var(--text-main); font-weight: 500; }

.ldi-profile-actions { padding: 20px; background: #f8fafc; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 10px; }


/* ==========================================================================
   5. PAGE ÉTABLISSEMENT (Visu Client)
   ========================================================================== */
.ldi-etab-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px; font-family: 'Segoe UI', sans-serif; }
.ldi-section-title { font-size: 1.4em; border-bottom: 2px solid #f0f0f1; padding-bottom: 10px; margin-bottom: 20px; color: var(--text-main); }

/* Grille Machines Client */
.ldi-grid-machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }
.ldi-card-machine {
    background: #fff; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; transition: all 0.3s ease;
}
.ldi-card-machine:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.ldi-card-header { background: #f6f7f7; padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.ldi-card-header h4 { margin: 0; color: var(--text-main); font-size: 1.1em; font-weight: 600; }
.ldi-serial-number { background: var(--ldi-blue); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: bold; font-family: monospace; }

.ldi-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ldi-machine-meta { margin-bottom: 20px; }
.ldi-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.8em; font-weight: 500; }
.ldi-badge-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.ldi-badge-neutral { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }

.ldi-machine-docs { margin-top: auto; border-top: 1px dashed var(--border-color); padding-top: 15px; }
.ldi-doc-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f0f6fc; color: var(--ldi-blue); padding: 6px 12px;
    border-radius: 20px; font-size: 0.85em; text-decoration: none; font-weight: 500; transition: background 0.2s;
}
.ldi-doc-chip:hover { background: var(--ldi-blue); color: #fff; }

/* Grille Utilisateurs */
.ldi-grid-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.ldi-card-user {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 15px;
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); transition: transform 0.2s;
}
.ldi-card-user:hover { transform: translateY(-2px); border-color: var(--ldi-blue); }
.ldi-avatar-icon { background: #f0f6fc; color: var(--ldi-blue); padding: 10px; border-radius: 50%; }


/* ==========================================================================
   6. CRUD MACHINES & ADMIN (Formulaires)
   ========================================================================== */
.ldi-crud-wrapper { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 20px; }
.ldi-crud-container.ldi-form {
    flex: 1 1 400px; background-color: #fff; border-radius: 10px;
    padding: 25px; box-shadow: var(--shadow-md); min-width: 300px;
}
.ldi-crud-container.ldi-form label { display: block; font-weight: 600; margin-top: 15px; margin-bottom: 5px; color: #333; }
.ldi-crud-container.ldi-form input[type="text"],
.ldi-crud-container.ldi-form input[type="date"],
.ldi-crud-container.ldi-form select,
.ldi-crud-container.ldi-form textarea {
    width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #ccc;
}
.ldi-crud-container.ldi-form input:focus { border-color: var(--ldi-blue); box-shadow: 0 0 5px rgba(0, 86, 179, 0.2); outline: none; }

.ldi-table-container {
    flex: 1 1 500px; background: #fff; border-radius: 10px; padding: 20px;
    box-shadow: var(--shadow-sm); max-height: 700px; overflow-y: auto;
}


/* ==========================================================================
   7. FORUM MODERNIZATION (wpForo Override)
   ========================================================================== */
#wpforo #wpforo-wrap { font-family: 'Inter', system-ui, sans-serif; margin-top: 20px; padding-bottom: 40px; background-color: transparent !important; }
#wpforo #wpforo-wrap .wpfl-1, #wpforo #wpforo-wrap .wpfl-4 { background: transparent !important; border: none !important; box-shadow: none !important; margin-bottom: 40px; }

/* En-tête Catégorie (Image) */
#wpforo #wpforo-wrap .wpforo-category {
    background-color: transparent !important; border: none !important; padding: 0 !important; margin-bottom: 20px;
    border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow-hover);
}
#wpforo #wpforo-wrap .wpforo-cat-title {
    background: rgba(255, 255, 255, 0.95); color: var(--text-main) !important;
    padding: 15px 30px; width: 100%; font-size: 1.3rem !important; font-weight: 800;
    margin: 0 !important; position: absolute; bottom: 0; left: 0;
}

/* Lignes Forum */
#wpforo #wpforo-wrap .wpforo-forum-info {
    background: #ffffff !important; border-bottom: 1px solid var(--bg-gray); padding: 25px 30px !important; transition: all 0.2s ease;
}
#wpforo #wpforo-wrap .wpforo-forum-info:hover { background-color: #f8fafc !important; transform: translateX(10px); }

/* Icônes Forum */
#wpforo #wpforo-wrap .wpforo-forum-icon i {
    color: var(--ldi-blue) !important; font-size: 20px; background: #eff6ff;
    width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
#wpforo #wpforo-wrap .wpforo-forum-info:hover .wpforo-forum-icon i {
    background: var(--ldi-blue); color: #fff !important; transform: rotate(10deg);
}

/* Masquer les trucs moches */
#wpforo #wpforo-wrap .wpforo-stat-area, #wpforo #wpforo-wrap .wpf-footer, .wpforo-copyright { display: none !important; }


/* ==========================================================================
   8.  TABLEAU SUIVI TICKETS 
   ========================================================================== */

/* --- LE CONTENEUR ET LA TABLE --- */
.ldi-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
    background: white;
}

.ldi-ticket-table {
    width: 100%;
    border-collapse: collapse;
    /* Empêche les colonnes de bouger quand on ouvre */
    table-layout: fixed; 
}

/* --- EN-TÊTE (HEADER) --- */
.ldi-ticket-table thead {
    background-color: #2563eb; 
    color: #ffffff;
}

.ldi-ticket-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: white !important; /* Force le blanc */
    border-bottom: 2px solid #1e40af;
}

/* --- CORPS DU TABLEAU --- */
.ldi-ticket-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: middle;
    white-space: nowrap;      /* Empêche le texte de passer à la ligne intempestivement */
    overflow: hidden;         /* Cache ce qui dépasse */
    text-overflow: ellipsis;  /* Ajoute "..." si c'est trop long */
}

/* --- LARGEURS DES COLONNES --- */
.ldi-col-toggle { width: 50px; text-align: center; }
.ldi-col-date   { width: 110px; }
.ldi-col-status { width: 130px; }
.ldi-col-subject { width: auto; } /* Le sujet prend tout le reste */

/* --- INTERACTION --- */
.ldi-ticket-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.ldi-ticket-row:hover {
    background-color: #f8fafc;
}
.ldi-ticket-row.active {
    background-color: #eff6ff; 
    border-left: 4px solid #2563eb; 
}

/* Icône flèche */
.ldi-toggle-icon {
    transition: transform 0.3s ease;
    color: #94a3b8;
}
.ldi-ticket-row.active .ldi-toggle-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* --- ZONE DÉTAILS (Cachée par défaut) --- */
.ldi-ticket-details {
    display: none;
    background-color: #ffffff;
}
.ldi-ticket-details.open {
    display: table-row;
}

/* Conteneur interne pour le padding du détail */
.ldi-detail-content {
    padding: 20px 40px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: normal; /* Autorise le retour à la ligne dans le détail */
}

/* ==========================================================================
   TIMELINE (FIL D'ARIANE VERTICAL)
   ========================================================================== */
.ldi-timeline {
    border-left: 3px solid #e2e8f0;
    margin: 10px 0 10px 20px;
    padding-left: 30px;
}

.ldi-timeline-item {
    position: relative;
    margin-bottom: 25px;
}
.ldi-timeline-item:last-child { margin-bottom: 0; }

/* La petite boule sur la ligne */
.ldi-timeline-dot {
    position: absolute;
    left: -37.5px; 
    top: 5px;
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cbd5e1;
}

/* Version active (Message important) */
.ldi-timeline-item.highlight .ldi-timeline-dot {
    background: #3b82f6; 
    box-shadow: 0 0 0 3px #dbeafe; 
}

/* Textes */
.ldi-msg-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.ldi-msg-body {
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Style messages systèmes */
.ldi-msg-system .ldi-msg-body {
    background: transparent;
    border: none;
    padding: 0;
    font-style: italic;
    color: #94a3b8;
    font-size: 0.85rem;
    box-shadow: none;
}

/* ==========================================================================
   9. PAGE D'ACCUEIL (HERO & FEATURES)
   ========================================================================== */

/* --- LE HERO (Bannière) --- */
.ldi-hero-section {
    position: relative;
    height: 500px; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-radius: 0 0 50% 50% / 4%; 
    overflow: hidden;
    margin-bottom: 60px;
}

.ldi-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 58, 138, 0.85) 100%);
    z-index: 1;
}

.ldi-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.ldi-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.ldi-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.ldi-hero-content p {
    font-size: 1.2rem;
    color: #cbd5e1; 
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Boutons du Hero */
.ldi-hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ldi-btn-hero {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ldi-btn-hero.primary {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.ldi-btn-hero.secondary {
    background-color: rgba(0, 0, 0, 0.4); 
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.ldi-btn-hero:hover {
    transform: translateY(-3px);
}
.ldi-btn-hero.primary {
    background-color: #3b82f6; 
    color: white;
    border: 1px solid #3b82f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.ldi-btn-hero.primary:hover { background-color: #2563eb; }
.ldi-btn-hero.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}


/* --- LES FEATURES (3 Colonnes) --- */
.ldi-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -100px auto 60px; /* Remonte sur le Hero pour l'effet de superposition */
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.ldi-feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border-top: 5px solid transparent;
}

.ldi-feature-card:hover {
    transform: translateY(-10px);
    border-top-color: #3b82f6;
}

.ldi-feat-icon {
    font-size: 40px;
    color: #3b82f6;
    background: #eff6ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ldi-feature-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.ldi-feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .ldi-hero-content h1 { font-size: 2rem; }
    .ldi-features-grid { margin-top: 0; } /* On annule l'effet de superposition sur mobile */
    .ldi-hero-section { height: auto; padding: 80px 0; border-radius: 0; }
}

/* FINITIONS ACCUEIL (Centrage & Bouton Flottant)
   ========================================================================== */

/* 1. Centrage du Titre Actualités */
.ldi-news-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}
.ldi-news-header h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 10px;
}

/* 2. Bouton Contact Flottant (Toujours visible) */
.ldi-floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2563eb; 
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    z-index: 9999; /* Toujours au-dessus */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.ldi-floating-contact:hover {
    transform: translateY(-5px);
    background-color: #1e40af;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
}

@media (max-width: 768px) {
    .ldi-floating-contact {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Séparateur "Actu internes" */
.ldi-divider {
    text-align: center;
    margin-top: 60px;    
    margin-bottom: 40px; 
    position: relative;
}

.ldi-divider::before {
    content: "";
    display: block;
    width: 80px;       
    height: 4px;        
    background-color: #e2e8f0; 
    margin: 0 auto 20px auto;  
    border-radius: 2px;
}

.ldi-divider span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DESIGN PAGE TÉLÉCHARGEMENTS */
.ldi-grid-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}
.ldi-file-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}
.ldi-file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.ldi-file-icon {
    font-size: 28px;
    background: #f7fafc;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.ldi-file-info { flex-grow: 1; }
.ldi-file-info h4 { margin: 0 0 5px 0; font-size: 16px; font-weight: 600; }
.ldi-file-meta { font-size: 12px; color: #718096; }
.ldi-file-action .button { font-size: 13px !important; padding: 8px 15px !important; }
@media (max-width: 768px) {
    .ldi-grid-downloads { grid-template-columns: 1fr; }
    .ldi-file-card { flex-direction: column; text-align: center; }
}