/* Acumen Companies Design 2 — Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', sans-serif; background: #f5f1ec; color: #4a3526; min-height: 100vh; }

/* ===== Navigation ===== */
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px;
    font-size: 12px; font-weight: 600;
    color: #b8956a; text-decoration: none;
    transition: all 0.2s ease;
    background: transparent; border: none; cursor: pointer;
    font-family: inherit;
}
.nav-link:hover { background: #FBF7F0; color: #78543a; }
.nav-link.active { background: #a67c52; color: white; }

/* Dropdown */
.dropdown-menu {
    position: absolute; top: 100%; right: 0; min-width: 180px;
    background: white; border-radius: 14px; padding: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border: 1px solid #F0E6D6;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}
.group:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(4px);
}
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 12px; font-weight: 600;
    color: #78543a; text-decoration: none;
    transition: all 0.15s ease;
}
.dropdown-item i { width: 16px; text-align: center; color: #b8956a; font-size: 11px; }
.dropdown-item:hover { background: #FBF7F0; color: #5e4330; }

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(240,230,214,0.6);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(166,124,82,0.04);
    transition: all 0.3s ease;
}
.glass-card:hover {
    box-shadow: 0 8px 30px rgba(166,124,82,0.08);
}

/* ===== Stats Card V2 ===== */
.stat-card-v2 {
    display: flex; align-items: center; gap: 10px;
    padding: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(240,230,214,0.6);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.stat-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(166,124,82,0.1);
    border-color: #d4a373;
}
.stat-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.stat-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 6px;
}
.stat-badge.up { background: rgba(107,158,107,0.12); color: #6B9E6B; }
.stat-badge.down { background: rgba(184,112,112,0.12); color: #B87070; }
.stat-badge.warn { background: rgba(196,169,90,0.12); color: #C4A95A; }

/* ===== Quick Action Button ===== */
.quick-action-btn {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px; font-weight: 600;
    color: #78543a; text-decoration: none;
    border: 1px solid #F0E6D6;
    background: white;
    transition: all 0.2s ease;
}
.quick-action-btn:hover {
    background: #FBF7F0;
    border-color: #d4a373;
    transform: translateX(-3px);
}

/* ===== Activity Items ===== */
.activity-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #F0E6D6;
}
.activity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-top: 6px; flex-shrink: 0;
}
.activity-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    color: #a67c52;
    background: rgba(166,124,82,0.08);
    padding: 2px 8px; border-radius: 6px;
}

/* ===== Page Header ===== */
.page-header {
    padding: 24px 0 20px;
    border-bottom: 1px solid #F0E6D6;
    margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 800; color: #5e4330; }
.page-subtitle { font-size: 13px; color: #b8956a; margin-top: 2px; }

/* ===== Table V2 ===== */
.table-v2 { width: 100%; text-align: right; border-collapse: separate; border-spacing: 0; }
.table-v2 thead th {
    padding: 12px 16px; font-size: 11px; font-weight: 700;
    color: #b8956a; border-bottom: 2px solid #F0E6D6;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.table-v2 tbody td {
    padding: 14px 16px; font-size: 13px;
    border-bottom: 1px solid #FBF7F0;
    color: #5e4330;
}
.table-v2 tbody tr { transition: background 0.2s ease; }
.table-v2 tbody tr:hover { background: #FBF7F0; }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 12px;
    background: linear-gradient(135deg, #d4a373, #a67c52);
    color: white; font-size: 13px; font-weight: 700;
    border: none; cursor: pointer; font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(166,124,82,0.25);
    text-decoration: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(166,124,82,0.35); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 12px;
    background: white; color: #78543a;
    font-size: 13px; font-weight: 700;
    border: 1.5px solid #F0E6D6;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-secondary:hover { border-color: #d4a373; background: #FBF7F0; }

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid #F0E6D6;
    margin-bottom: 20px;
}
.filter-input, .filter-select {
    padding: 8px 14px; border-radius: 10px;
    border: 1.5px solid #F0E6D6;
    font-size: 12px; font-weight: 500;
    color: #5e4330; background: white;
    font-family: inherit; outline: none;
    transition: border-color 0.2s;
}
.filter-input:focus, .filter-select:focus { border-color: #d4a373; }
.filter-input::placeholder { color: #b8956a; }

/* ===== Badges ===== */
.badge-active { background: rgba(107,158,107,0.1); color: #6B9E6B; padding: 4px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.badge-inactive { background: rgba(184,112,112,0.1); color: #B87070; padding: 4px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.badge-pending { background: rgba(196,169,90,0.1); color: #C4A95A; padding: 4px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; }

/* ===== Task Status ===== */
.task-status { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.task-status.completed { background: rgba(107,158,107,0.12); color: #6B9E6B; }
.task-status.in-progress { background: rgba(166,124,82,0.12); color: #a67c52; }
.task-status.pending { background: rgba(196,169,90,0.12); color: #C4A95A; }
.task-status.late { background: rgba(184,112,112,0.1); color: #B87070; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: white; border-radius: 24px;
    padding: 28px; max-width: 520px; width: 90%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e8d5b8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #d4a373; }

/* ===== Page Transition Overlay ===== */
#page-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(145deg, #FAF8F5 0%, #F0E6D6 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0; transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), visibility 0.6s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}
#page-overlay.fade-out { opacity: 0; visibility: hidden; }
#page-overlay::before, #page-overlay::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4;
    animation: orbFloat 4s ease-in-out infinite alternate;
}
#page-overlay::before { width: 300px; height: 300px; background: radial-gradient(circle, #d4a373, transparent 70%); top: -50px; right: -80px; }
#page-overlay::after { width: 250px; height: 250px; background: radial-gradient(circle, #a67c52, transparent 70%); bottom: -40px; left: -60px; animation-delay: -2s; }
#page-overlay .overlay-logo {
    font-size: 2.5rem; font-weight: 800; color: #2C2C2C; letter-spacing: 6px;
    text-transform: uppercase; direction: ltr; unicode-bidi: bidi-override;
    position: relative; z-index: 2; margin-bottom: 8px; opacity: 0;
    animation: logoReveal 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
#page-overlay .overlay-logo span { display: inline-block; animation: letterBounce 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
#page-overlay .overlay-line { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #a67c52, transparent); margin-bottom: 16px; opacity: 0; animation: fadeIn 0.5s ease 0.3s forwards; z-index: 2; }
#page-overlay .overlay-company { font-size: 0.95rem; color: #a67c52; font-weight: 600; letter-spacing: 1px; position: relative; z-index: 2; opacity: 0; animation: companySlide 0.6s ease-out 0.5s forwards; margin-bottom: 32px; }
#page-overlay .overlay-progress-track { width: 160px; height: 3px; background: rgba(212,163,115,0.2); border-radius: 3px; overflow: hidden; position: relative; z-index: 2; opacity: 0; animation: fadeIn 0.4s ease 0.7s forwards; }
#page-overlay .overlay-progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #a67c52, #d4a373); border-radius: 3px; animation: progressGrow 1.8s cubic-bezier(0.4,0,0.2,1) 0.8s forwards; }

@keyframes orbFloat { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(30px,-20px) scale(1.1); } }
@keyframes logoReveal { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes letterBounce { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes companySlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progressGrow { 0% { width: 0%; } 30% { width: 45%; } 60% { width: 70%; } 100% { width: 100%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .stat-card-v2 { flex-direction: column; text-align: center; }
    .stat-badge { position: static; margin-top: 4px; }
}

/* ===== Modal Show ===== */
.modal-overlay.show { display: flex; }

/* ===== Pagination ===== */
.pagination-btn {
    min-width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1.5px solid #F0E6D6;
    background: white; color: #b8956a;
    font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.pagination-btn:hover:not(:disabled):not(.active) { background: #FBF7F0; border-color: #d4a373; }
.pagination-btn.active { background: #a67c52; color: white; border-color: #a67c52; }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Form Group ===== */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: #b8956a; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border-radius: 12px;
    border: 1.5px solid #F0E6D6; font-size: 13px;
    color: #5e4330; background: white; font-family: inherit;
    outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #d4a373; }

/* ===== Toast ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== Detail Row (Modal) ===== */
.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #FBF7F0;
}
.detail-label { font-size: 12px; color: #b8956a; font-weight: 600; }
.detail-value { font-size: 13px; color: #5e4330; font-weight: 700; }

/* ===== Status Badge ===== */
.status-badge { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 8px; white-space: nowrap; }
.status-badge.active { background: rgba(107,158,107,0.12); color: #6B9E6B; }
.status-badge.inactive { background: rgba(184,112,112,0.1); color: #B87070; }

/* ===== Attendance Status ===== */
.att-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.att-status.present { background: rgba(107,158,107,0.12); color: #6B9E6B; }
.att-status.absent { background: rgba(184,112,112,0.1); color: #B87070; }
.att-status.late { background: rgba(196,169,90,0.12); color: #C4A95A; }
.att-status.leave { background: rgba(166,124,82,0.12); color: #a67c52; }

/* ===== Export Cols List ===== */
.export-col-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; transition: background 0.15s; }
.export-col-item:hover { background: #FBF7F0; }
.export-col-item input[type="checkbox"] { accent-color: #a67c52; }

/* ===== Password Strength ===== */
.strength-bar { width: 100%; height: 4px; background: #F0E6D6; border-radius: 4px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; transition: width 0.3s, background 0.3s; }

/* ===== Upload Zone ===== */
.upload-zone {
    border: 2px dashed #F0E6D6; border-radius: 16px;
    padding: 28px; text-align: center; cursor: pointer;
    transition: all 0.2s; background: #FBF7F0;
}
.upload-zone:hover { border-color: #d4a373; background: white; }

/* ===== Modal Animation ===== */
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ===== Quick Action Button ===== */
.quick-action-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px;
    font-size: 12px; font-weight: 700; color: #78543a;
    background: #FBF7F0; border: 1.5px solid #F0E6D6;
    transition: all 0.2s; text-decoration: none;
}
.quick-action-btn:hover { background: #F0E6D6; border-color: #d4a373; }
