/* =====================================================
DATAVERGE B2B GLOBAL SAAS THEME
===================================================== */

/* THEME COLORS */

:root {
    --dv-primary: #2563eb;
    --dv-primary-hover: #1d4ed8;
    --dv-success: #16a34a;
    --dv-danger: #dc2626;
    --dv-warning: #f59e0b;
    --dv-bg: #f1f5f9;
    --dv-card: #ffffff;
    --dv-border: #e2e8f0;
    --dv-text: #1e293b;
}

/* =====================================================
BASE SETTINGS
===================================================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width:768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: linear-gradient(135deg,#eef2ff,#f8fafc);
    font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
    color: var(--dv-text);
    margin-bottom: 120px;
}

/* =====================================================
PAGE CONTAINER
===================================================== */

.page-container {
    max-width: 1400px;
    margin: auto;
    padding: 25px;
}

/* =====================================================
LOGIN CARD
===================================================== */

.login-card {
    border: none;
    border-radius: 14px;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

/* =====================================================
GENERAL CARDS
===================================================== */

.card {
    border: none;
    border-radius: 12px;
    background: var(--dv-card);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--dv-border);
    font-weight: 600;
    font-size: 18px;
}

/* =====================================================
BOOTSTRAP ICON FIX
===================================================== */

.bi {
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    display: inline-block;
}

/* =====================================================
BUTTONS
===================================================== */

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

    .btn i {
        margin-right: 6px;
    }

.btn-primary {
    background: var(--dv-primary);
    border-color: var(--dv-primary);
}

    .btn-primary:hover {
        background: var(--dv-primary-hover);
        transform: translateY(-1px);
    }

.login-btn {
    font-weight: 600;
    padding: 12px;
    font-size: 16px;
}

/* =====================================================
INPUT FIELDS
===================================================== */

.form-control {
    border-radius: 6px;
    border: 1px solid var(--dv-border);
}

    .form-control:focus {
        border-color: var(--dv-primary);
        box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.2);
    }

.input-group-text {
    background: #f1f5f9;
}

/* =====================================================
LINKS
===================================================== */

a {
    color: var(--dv-primary);
    text-decoration: none;
}

    a:hover {
        color: var(--dv-primary-hover);
    }

/* =====================================================
TABLES
===================================================== */

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

    .table thead {
        background: linear-gradient(180deg,#f8fafc,#eef2f7);
        font-weight: 600;
        color: #334155;
    }

    .table th {
        border-bottom: 2px solid var(--dv-border);
    }

    .table td,
    .table th {
        padding: 12px 14px;
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table .btn {
    padding: 4px 10px;
    font-size: 13px;
}

/* SCROLLABLE TABLE (FOR LOGS / LARGE DATASETS) */

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

/* =====================================================
STATUS BADGES
===================================================== */

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 6px;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

/* =====================================================
NAVBAR
===================================================== */

.navbar {
    background: white;
    border-bottom: 1px solid var(--dv-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* =====================================================
DASHBOARD STAT CARDS
===================================================== */

.stat-card {
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.stat-primary {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
}

.stat-success {
    background: linear-gradient(135deg,#16a34a,#15803d);
}

.stat-warning {
    background: linear-gradient(135deg,#f59e0b,#d97706);
}

/* =====================================================
ALERT
===================================================== */

.alert {
    border-radius: 8px;
}

/* =====================================================
FORM LABEL
===================================================== */

.form-label {
    font-weight: 500;
}

/* =====================================================
FOOTER
===================================================== */

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: white;
    border-top: 1px solid var(--dv-border);
}

    .footer h6 {
        font-size: 14px;
        font-weight: 600;
    }

    .footer small {
        font-size: 13px;
        color: #555;
    }

    .footer a {
        font-size: 13px;
    }

        .footer a:hover {
            text-decoration: underline;
        }

/* =====================================================
MOBILE RESPONSIVE
===================================================== */

@media (max-width:768px) {

    .card {
        margin-left: 10px;
        margin-right: 10px;
    }

    .page-container {
        padding: 15px;
    }
}
