/* ==================================================
   GLOBAL
================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f3f4f6;
    color: #111827;
    animation: pageFadeIn 0.35s ease-in-out;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

p, td, input, select, button {
    font-size: 14px;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* ==================================================
   ANIMATION
================================================== */

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sidebarSlide {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================================================
   SIDEBAR PRO
================================================== */

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    padding: 18px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 1000;
    transition: width .28s ease;
    animation: sidebarSlide 0.4s ease;
}

.sidebar.collapsed {
    width: 78px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.sidebar-header h2 {
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #1e293b;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    font-size: 18px;
    transition: all .22s ease;
}

.sidebar-toggle:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.sidebar-menu a,
.sidebar-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #d1d5db;
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 12px;
    margin-bottom: 7px;
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all .22s ease;
}

.sidebar-menu a:hover,
.sidebar-dropdown-btn:hover {
    background: rgba(30, 41, 59, .95);
    color: #fff;
    transform: translateX(4px);
}

.sidebar a.active {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.sidebar-dropdown-btn span {
    transition: transform .28s ease;
}

.sidebar-dropdown.open .sidebar-dropdown-btn span {
    transform: rotate(180deg);
}

.sidebar-dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .32s ease, opacity .25s ease, transform .25s ease;
    padding-left: 10px;
}

.sidebar-dropdown.open .sidebar-dropdown-content {
    max-height: 240px;
    opacity: 1;
    transform: translateY(0);
}

.sidebar-dropdown-content a {
    font-size: 14px;
    padding: 10px 12px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.sidebar-logout {
    background: rgba(185, 28, 28, .18) !important;
    color: #fecaca !important;
    margin-top: 10px;
}

.sidebar-logout:hover {
    background: #b91c1c !important;
    color: #fff !important;
}

.sidebar-shortcut {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
    transition: opacity .2s ease;
}

.shortcut-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.sidebar-shortcut a {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .25);
    transition: all .22s ease;
}

.sidebar-shortcut a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .35);
}

.sidebar-shortcut span {
    display: block;
    font-size: 12px;
    opacity: .85;
}

.sidebar-shortcut b {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .sidebar-menu a,
.sidebar.collapsed .sidebar-dropdown-content,
.sidebar.collapsed .sidebar-dropdown-btn span,
.sidebar.collapsed .sidebar-shortcut {
    opacity: 0;
    pointer-events: none;
}

.sidebar.collapsed .sidebar-dropdown-btn {
    justify-content: center;
}

.sidebar.collapsed + .main {
    margin-left: 78px;
    width: calc(100% - 78px);
}

/* ==================================================
   MAIN LAYOUT
================================================== */

.main {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 25px;
    transition: margin-left .28s ease, width .28s ease;
}

.topbar {
    background: #fff;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    animation: cardSlideUp 0.45s ease;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    animation: cardSlideUp 0.45s ease;
}

/* ==================================================
   FORM
================================================== */

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: all .22s ease;
}

textarea {
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus,
.filter-box input:focus,
.filter-box select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 13px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all .22s ease;
}

button:hover,
.reset-filter:hover,
.pagination a:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
}

/* ==================================================
   DASHBOARD
================================================== */

.dashboard-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 380px;
    gap: 24px;
    align-items: stretch;
}

.dashboard-hero > div:first-child {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    font-size: 30px;
}

.dashboard-hero p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.dashboard-clock-card {
    padding: 26px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.45), transparent 35%),
        linear-gradient(135deg, #0f172a, #111827);
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.clock-label {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.clock-time {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.clock-date {
    margin-top: 12px;
    font-size: 15px;
    color: #e5e7eb;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.summary-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.summary-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -35px;
    top: -35px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
}

.summary-card.warning::after {
    background: rgba(245, 158, 11, 0.14);
}

.summary-card.success::after {
    background: rgba(34, 197, 94, 0.14);
}

.summary-card.danger::after {
    background: rgba(239, 68, 68, 0.14);
}

.summary-card span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.summary-card strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    color: #0f172a;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 24px;
}

.dashboard-grid .card {
    padding: 24px;
    border-radius: 18px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
}

.section-title a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.pending-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.pending-item b {
    display: block;
    color: #0f172a;
    margin-bottom: 3px;
}

.pending-item span {
    display: block;
    color: #334155;
    font-size: 14px;
}

.pending-item small {
    display: block;
    color: #64748b;
    margin-top: 5px;
}

.pending-item a {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.activity-item {
    position: relative;
    padding: 14px 0 14px 18px;
    border-bottom: 1px solid #eef2f7;
}

.activity-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
}

.activity-item b {
    display: block;
    color: #0f172a;
    margin-bottom: 4px;
}

.activity-item span,
.activity-item small {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-actions a {
    background: #111827;
    color: #fff;
    text-decoration: none;
    padding: 15px 16px;
    border-radius: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
    transition: all .22s ease;
}

.quick-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.type-nawala {
    background: #e0f2fe;
    color: #0369a1;
}

.type-livechat {
    background: #fef3c7;
    color: #92400e;
}

.type-whatsapp {
    background: #dcfce7;
    color: #166534;
}

.dashboard-filter {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 12px;
    align-items: end;
}

.dashboard-filter label {
    font-size: 13px;
    color: #475569;
}

.summary-link {
    display: block;
    text-decoration: none;
    transition: all .22s ease;
}

.summary-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

@media (max-width: 900px) {
    .dashboard-filter {
        grid-template-columns: 1fr;
    }
}



/* ==================================================
   LIST TABLE - STABLE LAYOUT
================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
}

.report-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: auto;
}

.report-table th,
.report-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    font-size: 14px;
    white-space: nowrap;
}

.report-table th {
    background: #111827;
    color: #fff;
    font-weight: 700;
}

.report-table th:nth-child(1),
.report-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.report-table th:nth-child(3),
.report-table td:nth-child(3),
.report-table th:nth-child(4),
.report-table td:nth-child(4) {
    max-width: 260px;
}

.report-table td:nth-child(3),
.report-table td:nth-child(4) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-table th:nth-child(5),
.report-table td:nth-child(5),
.report-table th:nth-child(6),
.report-table td:nth-child(6),
.report-table th:nth-child(7),
.report-table td:nth-child(7),
.report-table th:nth-child(8),
.report-table td:nth-child(8) {
    text-align: center;
}

.table-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.table-actions a {
    white-space: nowrap;
}

.status-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 28px;
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.delete-link {
    color: #dc2626 !important;
    font-weight: 700;
}

/* ==================================================
   FILTER BOX
================================================== */

.filter-box {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto auto;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.filter-box input,
.filter-box select {
    height: 42px;
}

.reset-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6b7280;
    color: #fff;
    text-decoration: none;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 700;
    transition: all .22s ease;
}

.table-info {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
}

/* ==================================================
   PAGINATION
================================================== */

.pagination {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all .22s ease;
}

.pagination a.active {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

/* ==================================================
   HISTORY
================================================== */

.history-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.history-action {
    font-weight: 700;
}

.history-meta {
    font-size: 13px;
    color: #6b7280;
}

.history-body {
    font-size: 14px;
    color: #374151;
}

.history-line {
    margin-left: 10px;
    margin-bottom: 3px;
}

/* ==================================================
   TOAST NOTIFICATION
================================================== */

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    min-width: 280px;
    max-width: 380px;
    background: #111827;
    color: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    z-index: 9999;
    opacity: 0;
    transform: translateX(30px) scale(0.96);
    pointer-events: none;
    transition: all 0.35s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast.success {
    border-left: 5px solid #22c55e;
}

.toast.error {
    border-left: 5px solid #ef4444;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.toast-message {
    color: #d1d5db;
    font-size: 14px;
}

/* ==================================================
   FIX SIDEBAR COLLAPSED
================================================== */

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu {
    display: none;
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .sidebar-shortcut {
    display: none;
}

.sidebar.collapsed + .main {
    margin-left: 78px;
    width: calc(100% - 78px);
}

/* ==================================================
   FIX SIDEBAR TOGGLE POSITION
================================================== */

.sidebar-header {
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar.collapsed .sidebar-header {
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
    justify-self: center;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {
    .dashboard-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid,
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 78px;
    }

    .sidebar .sidebar-header h2,
    .sidebar .sidebar-menu a,
    .sidebar .sidebar-dropdown-content,
    .sidebar .sidebar-dropdown-btn span,
    .sidebar .sidebar-shortcut {
        opacity: 0;
        pointer-events: none;
    }

    .main {
        margin-left: 78px;
        width: calc(100% - 78px);
        padding: 18px;
    }

    .report-table {
        min-width: 900px;
    }

    .card {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .summary-grid,
    .quick-actions,
    .filter-box {
        grid-template-columns: 1fr;
    }

    .clock-time {
        font-size: 36px;
    }
}

/* ==================================================
   ACTIVE LINKS DASHBOARD
================================================== */

.active-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.active-brand-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}

.active-brand-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #0f172a;
}

.active-link-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
    align-items: center;
}

.active-link-row span {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.active-link-row a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-link-row em {
    color: #94a3b8;
    font-style: normal;
}

@media (max-width: 1200px) {
    .active-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .active-links-grid {
        grid-template-columns: 1fr;
    }
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #64748b;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-reset:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-reset:active {
    transform: scale(0.96);
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #64748b;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-reset:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-reset:active {
    transform: scale(0.96);
}

/* ==================================================
   FIX DASHBOARD FILTER ALIGNMENT
================================================== */

.dashboard-filter {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end !important;
}

.dashboard-filter > div {
    display: flex;
    flex-direction: column;
}

.dashboard-filter button,
.dashboard-filter .btn-reset {
    height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.dashboard-filter .btn-reset {
    padding: 0 20px !important;
    border-radius: 10px !important;
    background: #64748b !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.dashboard-filter .btn-reset:hover {
    background: #475569 !important;
}

/* ==================================================
   VIEW PAGE PREMIUM
================================================== */

.view-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.view-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 30%),
        #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.view-kicker {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.view-hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.view-hero p {
    margin: 0;
    color: #64748b;
}

.view-status-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 16px;
    min-width: 160px;
    text-align: center;
}

.view-status-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.view-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.view-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.view-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed #e5e7eb;
    align-items: center;
}

.info-row span {
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}

.info-row b,
.info-row a {
    min-width: 0;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-row a {
    color: #2563eb;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.evidence-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

.evidence-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.evidence-item a {
    display: block;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evidence-item em,
.pixel-box em {
    color: #94a3b8;
    font-style: normal;
}

.pixel-box {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: auto;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.timeline-head span {
    color: #64748b;
    font-size: 13px;
}

.timeline-body {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.view-actions {
    position: sticky;
    bottom: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

.btn-primary,
.btn-secondary,
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-success {
    background: #16a34a;
    color: #fff;
}

@media (max-width: 1000px) {
    .view-grid,
    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .view-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-status-box {
        width: 100%;
        text-align: left;
    }

    .timeline-head {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .view-actions {
        flex-direction: column;
        position: static;
    }
}

/* ==================================================
   VIEW EXTRA POLISH
================================================== */

.view-type-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}

.view-type-badge.type-nawala {
    background: #dbeafe;
    color: #1d4ed8;
}

.view-type-badge.type-livechat {
    background: #fef3c7;
    color: #92400e;
}

.view-type-badge.type-whatsapp {
    background: #dcfce7;
    color: #166534;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.copy-row a {
    min-width: 0;
    flex: 1;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    background: #111827;
    color: #fff;
    flex-shrink: 0;
}

.ss-preview {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all .22s ease;
}

.ss-preview:hover {
    transform: scale(1.015);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.copy-btn.copied {
    background: #16a34a !important;
}

/* ==================================================
   BRAND COLOR CARDS (SOFT PROFESSIONAL)
================================================== */

.brand-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all .25s ease;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.active-brand-card:hover {
    transform: translateY(-4px);
    transition: all .25s ease;
}

/* ==================================================
   BRAND CARD (IMPROVED CONTRAST)
================================================== */

.brand-cuan123 {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border-left: 6px solid #e11d48;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.12);
}

.brand-jablay123 {
    background: linear-gradient(135deg, #fdf2f8, #fbcfe8);
    border-left: 6px solid #db2777;
    box-shadow: 0 6px 16px rgba(219, 39, 119, 0.12);
}

.brand-botak123 {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    border-left: 6px solid #ea580c;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.12);
}

.brand-candu123 {
    background: linear-gradient(135deg, #f0fdf4, #bbf7d0);
    border-left: 6px solid #22c55e;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.12);
}

.brand-pasar123 {
    background: linear-gradient(135deg, #ecfdf5, #86efac);
    border-left: 6px solid #15803d;
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.14);
}

.brand-sakti123 {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-left: 6px solid #b91c1c;
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.14);
}

/* ==================================================
   CREATE PAGE PREMIUM
================================================== */

.create-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.create-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 28%),
        #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.create-hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.create-hero p {
    margin: 0;
    color: #64748b;
}

.create-hero-badge {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    min-width: 150px;
    padding: 16px;
    text-align: center;
}

.create-hero-badge span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    margin-bottom: 6px;
}

.create-hero-badge b {
    color: #1d4ed8;
    font-size: 18px;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.create-section {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.create-section-head {
    margin-bottom: 18px;
}

.create-section-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.create-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.important-field input {
    border-color: #2563eb;
    background: #eff6ff;
}

.important-field input:focus {
    background: #fff;
}

.create-actions {
    position: sticky;
    bottom: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}

.create-actions .btn-primary,
.create-actions .btn-secondary {
    min-height: 44px;
}

@media (max-width: 900px) {
    .create-grid {
        grid-template-columns: 1fr;
    }

    .create-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .create-hero-badge {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .create-actions {
        position: static;
        flex-direction: column;
    }
}

input:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.expired-warning {
    color: #facc15;
    font-weight: 700;
}

.expired-danger {
    color: #ef4444;
    font-weight: 700;
}

.qs-btn {
    padding: 4px 8px;
    margin: 2px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    background: #222;
    color: #ccc;
    font-size: 12px;
}

.qs-btn.active {
    background: #2563eb;
    color: #fff;
}

/* ==================================================
   DATA DOMAIN PANEL EXTRA
================================================== */

.badge-aktif {
    background: #16a34a;
}

.badge-backup-aktif {
    background: #2563eb;
}

.badge-backup {
    background: #f59e0b;
}

.badge-nawala {
    background: #dc2626;
}

.bulk-action {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
    flex-wrap: wrap;
}

.bulk-action select {
    max-width: 220px;
}

.expired-warning {
    color: #f59e0b;
    font-weight: 800;
}

.expired-danger {
    color: #dc2626;
    font-weight: 800;
}

.quick-status {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.qs-btn {
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
    background: #e5e7eb;
    color: #111827;
    border: none;
    cursor: pointer;
}

.qs-btn.active {
    background: #2563eb;
    color: #fff;
}

/* ==================================================
   DATA DOMAIN DASHBOARD
================================================== */

.brand-dashboard-card {
    margin-bottom: 24px;
}

.domain-type-block {
    margin-top: 22px;
}

.domain-type-block h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #0f172a;
    padding-left: 10px;
    border-left: 5px solid #2563eb;
}

.domain-dashboard-table {
    min-width: 700px;
    margin-top: 8px;
}

.domain-dashboard-table th:nth-child(1),
.domain-dashboard-table td:nth-child(1) {
    width: auto;
    text-align: left;
}

.domain-dashboard-table th:nth-child(2),
.domain-dashboard-table td:nth-child(2),
.domain-dashboard-table th:nth-child(3),
.domain-dashboard-table td:nth-child(3) {
    text-align: center;
}

/* ==================================================
   DOMAIN DASHBOARD 2 COLUMN SHEET STYLE
================================================== */

.domain-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.domain-brand-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.domain-brand-title {
    background: #111827;
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: .5px;
}

.domain-type-section {
    margin-bottom: 18px;
}

.domain-type-title {
    background: #eff6ff;
    color: #1d4ed8;
    border-left: 5px solid #2563eb;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.domain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.domain-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px dashed #e5e7eb;
}

.domain-list li:hover {
    background: #f8fafc;
    border-radius: 8px;
}

.domain-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
}

@media (max-width: 1000px) {
    .domain-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* STATUS COLORS DATA DOMAIN */
.badge-aktif {
    background: #16a34a !important;
    color: #fff !important;
}

.badge-backup-aktif {
    background: #facc15 !important;
    color: #111827 !important;
}

.badge-backup {
    background: #9ca3af !important;
    color: #111827 !important;
}

.badge-nawala {
    background: #dc2626 !important;
    color: #fff !important;
}

.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.btn-edit {
    background: #2563eb;
    color: #fff;
}

.btn-delete {
    background: #dc2626;
    color: #fff;
}