:root {
    --primary-color: #6C69C4;
    --primary-dark: #5855a8;
    --table-header: #525667;
    --border-color: #e2e8f0;
    --text-main: #2d3748;
    --bg-light: #f7fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

body { background-color: #fcfcfd; color: var(--text-main); }

.app-header { background-color: var(--primary-color); color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.header-inner { display: flex; align-items: center; gap: 16px; }
.brand-link { text-decoration: none; }
.logo-box { background: white; color: var(--primary-color); font-weight: 800; font-size: 20px; padding: 6px 12px; border-radius: 6px; letter-spacing: 1px; }
.header-subtitle { font-size: 0.85em; font-weight: 400; opacity: 0.9; }

.btn-refresh { background-color: white; color: var(--primary-color); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: 20px; transition: background 0.2s; }
.btn-refresh:hover { background-color: #edf2f7; }

/* Navigation & Dropdowns */
.main-nav { background: var(--primary-dark); padding: 0 24px; }
.nav-menu { list-style: none; display: flex; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link { display: block; color: white; text-decoration: none; padding: 14px 18px; font-weight: 500; font-size: 15px; }
.nav-item:hover > .nav-link { background-color: rgba(255, 255, 255, 0.1); }

.dropdown-list, .dropdown-panel { display: none; position: absolute; top: 100%; left: 0; background: white; box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-radius: 0 0 6px 6px; z-index: 100; min-width: 250px; }
.nav-item:hover .dropdown-list, .nav-item:hover .dropdown-panel { display: block; }

.dropdown-list { list-style: none; padding: 8px 0; }
.dropdown-list li a { display: block; padding: 8px 16px; color: #333; text-decoration: none; font-size: 14px; }
.dropdown-list li a:hover { background-color: #f1f5f9; color: var(--primary-color); }
.dropdown-list .divider { height: 1px; background: #e2e8f0; margin: 6px 0; }

.alpha-panel { padding: 14px; width: 320px; }
.alpha-top { text-align: center; margin-bottom: 10px; font-weight: bold; }
.alpha-top a { text-decoration: none; color: var(--primary-color); }
.alpha-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.alpha-cell { display: block; text-align: center; padding: 6px; background: #edf2f7; text-decoration: none; color: #4a5568; border-radius: 4px; font-weight: 600; }
.alpha-cell:hover { background: var(--primary-color); color: white; }

/* Table Section */
.conteneur { max-width: 1200px; margin: 30px auto; padding: 0 16px; }
.bahcenter { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: visible; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.bahcenter th { background: var(--table-header); color: white; padding: 12px 16px; text-align: left; font-size: 14px; line-height: 1.4; }
.bahcenter td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); vertical-align: top; font-size: 14px; }
.bahcenter tr:hover { background-color: #f8fafc; }

/* Photo Tooltip on Name Hover */
.name-container { position: relative; display: inline-block; cursor: pointer; color: #1a202c; }
.photo-tooltip { display: none; position: absolute; left: 105%; top: -20px; z-index: 200; box-shadow: 0 10px 25px rgba(0,0,0,0.25); border-radius: 12px; overflow: hidden; background: white; border: 2px solid white; }
.photo-tooltip img { display: block; max-height: 400px; width: auto; }
.name-container:hover .photo-tooltip { display: block; }

.firstname-text, .status-text { color: #718096; font-style: italic; font-size: 13px; margin-top: 2px; }
.phone-link a { color: var(--text-main); text-decoration: none; }
.col-contact { display: flex; gap: 10px; align-items: center; }
.contact-icon { color: var(--primary-color); text-decoration: none; display: inline-flex; align-items: center; }
.contact-icon:hover { color: var(--primary-dark); }
.no-records { text-align: center; color: #a0aec0; padding: 40px !important; }
.directory-footer { text-align: center; margin-top: 24px; font-size: 13px; color: #718096; }
.directory-footer a { color: var(--primary-color); text-decoration: none; }