﻿/* =========================================================
   iFAS ERP — CLEAN SITE.CSS
   ========================================================= */

/* =========================================================
   ROOT
========================================================= */
:root {
    --font-size: 13px;
    --font-title: 14px;
    --primary: #5b3df5;
    --primary-dark: #2d1f69;
    --border: #e5e7eb;
    --text: #1f2937;
    --text-soft: #6b7280;
    --bg: #f5f6fa;
    --white: #ffffff;
}

/* =========================================================
   GLOBAL
========================================================= */
html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: var(--font-size);
    background: var(--bg);
    color: var(--text);
}

/* =========================================================
   LINKS
========================================================= */
a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* =========================================================
   BUTTON
========================================================= */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background: #4b31d9;
        border-color: #4b31d9;
    }

/* =========================================================
   FORM
========================================================= */
.form-control,
.form-select {
    font-size: var(--font-size);
    border-radius: 10px;
    border: 1px solid #d1d5db;
    min-height: 42px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #a78bfa;
        box-shadow: 0 0 0 0.2rem rgba(91,61,245,0.15);
    }

/* =========================================================
   CARD
========================================================= */
.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    background: white;
}

.card-body {
    padding: 18px;
}

/* =========================================================
   TABLE
========================================================= */
.table {
    font-size: var(--font-size);
    background: white;
}

    .table thead {
        background: #f9fafb;
    }

    .table th {
        font-weight: 600;
        color: #374151;
    }

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-weight: 700;
    color: var(--text);
}

/* =========================================================
   SIDEBAR LEGACY SUPPORT
========================================================= */
.sidebar {
    background: linear-gradient( 180deg, #16112e 0%, #2d1f69 100% );
    color: white;
}

    .sidebar .nav-link {
        color: rgba(255,255,255,0.75);
        border-radius: 8px;
        transition: 0.2s;
    }

        .sidebar .nav-link:hover {
            background: rgba(255,255,255,0.08);
            color: white;
        }

        .sidebar .nav-link.active {
            background: rgba(255,255,255,0.14);
            color: white;
        }

/* =========================================================
   VALIDATION
========================================================= */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #16a34a;
}

.invalid {
    outline: 1px solid #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: 12px;
}

/* =========================================================
   CONTENT AREA
========================================================= */
.content {
    padding: 20px;
}

/* =========================================================
   MODERN PANEL
========================================================= */
.panel-modern {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* =========================================================
   KPI CARD
========================================================= */
.kpi-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 20px;
    transition: 0.2s;
}

    .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    }

.kpi-title {
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

/* =========================================================
   LOGIN SUPPORT
========================================================= */
.login-container {
    min-height: 100vh;
}

.login-card {
    backdrop-filter: blur(14px);
}

/* =========================================================
   BLAZOR ERROR
========================================================= */
#blazor-error-ui {
    background: #fef3c7;
    color: #92400e;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 16px;
    z-index: 9999;
}

    #blazor-error-ui .dismiss {
        position: absolute;
        right: 16px;
        top: 10px;
        cursor: pointer;
    }

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {

    .content {
        padding: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .table {
        font-size: 12px;
    }
}

.ticket-result-box {
    border-radius: 18px;
    padding: 40px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.ticket-valid {
    background: linear-gradient(135deg, #0f9d58, #16c784);
}

.ticket-used {
    background: linear-gradient(135deg, #b00020, #ff3b30);
}

.ticket-invalid {
    background: linear-gradient(135deg, #f29900, #ffb300);
    color: #212529;
}

.ifas-table-header th {
    background: linear-gradient( 90deg, #312e81, #4f46e5 );
    color: white;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
    border: none;
}