/* Copyright Capstone CRM */

        :root {
            --bg: #0f0f0f;
            --card-bg: #1c1c1e;
            --text: #f5f5f7;
            --accent: #0a84ff;
            --success: #30d158;
            --danger: #ff3b30;
            --border: #3a3a3c;
        }
        body {
            background: var(--bg);
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        .card {
            background: var(--card-bg);
            border: none;
            border-radius: 18px;
            box-shadow: 0 4px 30px rgba(0,0,0,0.5);
            overflow: vissible;
        }
        .table {
            --bs-table-bg: transparent;
            --bs-table-color: var(--text);
        }
        .table th {
            background: rgba(255,255,255,0.05);
            border-bottom: 1px solid var(--border);
        }
        .table td {
            border-bottom: 1px solid var(--border);
        }
        .table tr:hover {
            background: rgba(255,255,255,0.05);
        }
        .btn-primary {
            background: var(--accent);
            border: none;
            border-radius: 12px;
            padding: 10px 20px;
            transition: all 0.2s;
        }
        .btn-primary:hover {
            background: #007aff;
            transform: translateY(-1px);
        }
        .btn-danger {
            border-radius: 12px;
            transition: all 0.2s;
        }
        .btn-info {
            border-radius: 12px;
            transition: all 0.2s;
        }
        .modal-content {
            background: var(--card-bg);
            border-radius: 18px;
            border: none;
        }
        .modal-header {
            border-bottom: 1px solid var(--border);
        }
        .modal-footer {
            border-top: 1px solid var(--border);
        }
        .alert-info {
            background: rgba(10,132,255,0.1);
            border-color: rgba(10,132,255,0.2);
            color: #0a84ff;
            border-radius: 12px;
        }
        .form-control, .form-select {
            background: #2c2c2e;
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 12px;
        }
        .form-control:focus, .form-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 0.25rem rgba(10,132,255,0.25);
}


.row-highlight{
    background-color:#1f2a1f;
}

.holo-card {
    background: rgba(30, 30, 50, 0.6) !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.holo-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3) !important;
    border-color: rgba(0, 255, 255, 0.6) !important;
}

/* Holographic icon container */
.holo-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.15), transparent 70%);
    box-shadow: 
        inset 0 0 30px rgba(0, 255, 255, 0.5),
        0 0 50px rgba(0, 255, 255, 0.4),
        0 0 100px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;              /* ← NEW: flex container */
    align-items: center;        /* ← NEW: vertical center */
    justify-content: center;    /* ← NEW: horizontal center */
}

.holo-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        inset 0 0 30px rgba(0, 255, 255, 0.6),
        0 0 60px rgba(0, 255, 255, 0.5),
        0 0 120px rgba(0, 255, 255, 0.3);
}

/* Inner glow + scanline effect */
.holo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 255, 0.08) 50%,
        transparent 100%
    );
    animation: scan 8s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Icon itself (neon gradient text) */
.holo-icon i {
    font-size: 3rem;
    background: linear-gradient(135deg, #00ffff, #00bfff, #7b00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px #00ffff);
    transition: all 0.4s ease;
    z-index: 1; /* make sure icon is above scanline */
}

.holo-card:hover .holo-icon i {
    filter: drop-shadow(0 0 20px #00ffff);
}


/* ================================
   Ledger Dashboard Metric Cards
   Edge Glow → Fade to Center
================================ */

.metric-card{
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* shared overlay layer */
.metric-card::before{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.75;
    animation: metricGlow 10s ease-in-out infinite;
}

/* Revenue (blue edge glow) */
.metric-revenue::before{
    background: radial-gradient(
        circle at center,
        rgba(10,132,255,0.0) 30%,
        rgba(10,132,255,0.20) 60%,
        rgba(10,132,255,0.45) 100%
    );
}

/* Expenses (red edge glow) */
.metric-expenses::before{
    background: radial-gradient(
        circle at center,
        rgba(255,59,48,0.0) 30%,
        rgba(255,59,48,0.20) 60%,
        rgba(255,59,48,0.45) 100%
    );
}

/* Net Profit (green edge glow) */
.metric-profit::before{
    background: radial-gradient(
        circle at center,
        rgba(48,209,88,0.0) 30%,
        rgba(48,209,88,0.20) 60%,
        rgba(48,209,88,0.45) 100%
    );
    transition: background 0.1s ease-out;
    animation: metricGlow 6s ease-in-out infinite;
}

.metric-card .card-body{
    position: relative;
    z-index: 2;
}

.metric-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

@keyframes metricGlow{
    0%{opacity:0.65;}
    50%{opacity:0.85;}
    100%{opacity:0.65;}
}

/* Commissions table layout */
.commissions-table {
    table-layout: auto;
    width: 100%;
    min-width: 1600px;
}

.commissions-table th,
.commissions-table td {
    vertical-align: top;
}

.commissions-table th {
    white-space: nowrap;
}

.commissions-table td:last-child,
.commissions-table th:last-child {
    min-width: 260px !important;
    white-space: nowrap;
}

.commissions-table td:last-child .btn,
.commissions-table td:last-child button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem 0.5rem 0 !important;
    min-width: 110px !important;
    box-shadow: none !important;
}

.commissions-table td:nth-child(1),
.commissions-table th:nth-child(1) {
    width: 70px;
}

.commissions-table td:nth-child(2),
.commissions-table th:nth-child(2) {
    width: 110px;
    white-space: nowrap;
}

.commissions-table td:nth-child(3),
.commissions-table th:nth-child(3) {
    min-width: 280px;
}

.commissions-table td:nth-child(4),
.commissions-table th:nth-child(4) {
    min-width: 180px;
}


.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
