﻿/* =========================================
   GLOBAL
========================================= */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

a, .btn-link {
    color: #006bb7;
}

.page-title {
    font-weight: 600;
    margin-bottom: 20px;
}

.content-area {
    padding: 20px;
}

/* =========================================
   BUTTONS
========================================= */

.btn-primary {
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn {
    border-radius: 10px;
    transition: 0.15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-equal {
    height: 45px;
    font-weight: 500;
}

/* =========================================
   VALIDATION
========================================= */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* =========================================
   LAYOUT
========================================= */

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    min-height: 100vh;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: white;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar .nav-link {
    color: #cfd8dc;
    padding: 10px 20px;
    border-radius: 6px;
}

    .sidebar .nav-link:hover {
        background-color: #343a40;
        color: #ffffff;
    }

    .sidebar .nav-link.active {
        background-color: #0d6efd;
        color: #ffffff !important;
        font-weight: 500;
    }

.nav-section {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #cfd8dc;
    padding: 12px 15px 6px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* =========================================
   CARDS
========================================= */

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.card-body {
    overflow-x: hidden;
}

.mobile-card {
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* =========================================
   TABLE
========================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    min-width: 650px;
}


/* =========================================
   STATUS COLORS
========================================= */

.status-paid {
    background-color: #d1e7dd;
}

.status-partial {
    background-color: #fff3cd;
}

.status-pending {
    background-color: #f8d7da;
}

.status-payout {
    background-color: #cff4fc;
}

/* =========================================
   BADGES
========================================= */

.badge {
    border-radius: 8px;
    padding: 5px 10px;
}

/* =========================================
   TOAST
========================================= */

.toast-box {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    z-index: 9999;
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

.toast-warning {
    background: #f59e0b;
}

/* =========================================
   STICKY FOOTER
========================================= */

.sticky-footer {
    position: sticky;
    bottom: 0;
    background: #f8f9fa;
    z-index: 5;
}

/* =========================================
   MONEY FORMAT FIX
========================================= */

.text-nowrap {
    white-space: nowrap;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 767.98px) {

    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100% !important;
        min-height: auto;
    }

    .content-area {
        padding: 12px !important;
    }

    h3 {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .card-body {
        padding: 14px;
        overflow: hidden;
    }

    .d-flex span:last-child {
        max-width: 60%;
        text-align: right;
    }
}

/* =========================================
   DESKTOP ONLY
========================================= */

@media (min-width: 768px) {
    .sidebar-container {
        height: 100vh;
        overflow-y: auto;
    }
}

/* ================= DASHBOARD CARDS ================= */

.dashboard-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

    /* Left color border strip */
    .dashboard-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 6px;
        border-radius: 15px 0 0 15px;
    }

/* Different colors for each card */
.card-info::before {
    background: #0dcaf0;
}

.card-success::before {
    background: #198754;
}

.card-warning::before {
    background: #ffc107;
}

.card-danger::before {
    background: #dc3545;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Transaction Card (Mobile) */
.transaction-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: none;
}
