/* Acumen 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; }

/* ===== 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;
}

/* ===== Complaint Card ===== */
.complaint-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 14px;
    border: 1px solid #F0E6D6;
    transition: all 0.2s ease;
}
.complaint-card:hover { border-color: #d4a373; background: #FBF7F0; }
.complaint-badge {
    font-size: 10px; font-weight: 700;
    padding: 4px 10px; border-radius: 8px;
    background: rgba(245,158,11,0.1); color: #d97706;
    white-space: nowrap;
}

/* ===== Company Row ===== */
.company-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; border-radius: 16px;
    border: 1px solid #F0E6D6;
    transition: all 0.2s ease;
}
.company-row:hover {
    border-color: #d4a373;
    background: #FBF7F0;
    transform: translateX(-3px);
}

/* ===== Page Header (for inner pages) ===== */
.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);
}
.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;
}
.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; }
.badge-trial { background: rgba(245,158,11,0.1); color: #d97706; padding: 4px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; }

/* ===== 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); }
}

/* ===== Toast ===== */
.toast {
    position: fixed; top: 24px; left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #a67c52; color: white;
    padding: 14px 28px; border-radius: 14px;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(166,124,82,0.3);
    z-index: 200; transition: transform 0.4s ease;
}
.toast.show { transform: translateX(-50%) 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; }

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