﻿:root {
    --tcms-primary: #143b6b;
    --tcms-accent: #1e88e5;
    --tcms-bg: #f5f7fb;
}

body {
    background-color: var(--tcms-bg);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tcms-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e4ec;
}

.tcms-logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--tcms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--tcms-primary);
    margin-right: 10px;
}

.tcms-title {
    font-weight: 700;
    color: var(--tcms-primary);
    margin-bottom: 0;
}

.tcms-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
}

.dashboard-wrapper {
    padding: 0px 0px 40px;
}

.kpi-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    background-color: #ffffff;
}

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
}

.kpi-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--tcms-primary);
}

.kpi-trend {
    font-size: 0.8rem;
}

    .kpi-trend i {
        font-size: 0.9rem;
    }

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e7ebf2;
    font-weight: 600;
}

.chart-placeholder {
    height: 260px;
    background: repeating-linear-gradient( -45deg, #f1f3f8, #f1f3f8 10px, #e6e9f2 10px, #e6e9f2 20px );
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a94a6;
    font-size: 0.9rem;
}

.risk-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

@@media (max-width: 991.98px) {
    .dashboard-wrapper {
        padding: 15px 10px 30px;
    }
}

/* Sidebar container */
.tcms-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e8ef;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
    z-index: 1030;
}

/* Sidebar branding area */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.tcms-logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #143b6b;
    color: #143b6b;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #143b6b;
}

.sidebar-sub {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 0.9rem;
}

/* Menu items */
.sidebar-menu .nav-link {
    color: #4b5563;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

    .sidebar-menu .nav-link:hover {
        background-color: #f1f5f9;
        color: #143b6b;
    }

    .sidebar-menu .nav-link.active {
        background-color: #143b6b;
        color: #ffffff;
    }

/* Icons */
.sidebar-menu i {
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .tcms-sidebar {
        width: 0;
        overflow: hidden;
        padding: 0;
        transition: width 0.3s ease;
    }

        .tcms-sidebar.open {
            width: 240px;
            padding: 20px 15px;
        }
}

.main-content {
    margin-left: 240px;
    padding: 20px;
}

@@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xbody {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/images/training_background.jpg');
    /*background-size: cover;
    background-position: center;*/

    background-size: cover;
    background-position: center top; /* try: top, 50% 20%, etc. */

    background-repeat: no-repeat;
    background-attachment: fixed;
}

.signin-wrapper {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}

.signin-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

    .signin-header h1 {
        margin: 0 0 0.25rem;
        font-size: 1.6rem;
    }

    .signin-header p {
        margin: 0;
        color: #6b7280;
        font-size: 0.95rem;
    }

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    input[type="email"]:focus,
    input[type="password"]:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    }

.actions {
    margin-top: 1.5rem;
}

.btn-primary {
    width: 100%;
    border: none;
    padding: 0.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #143b6b;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}

    .btn-primary:hover {
        background: #1d4ed8;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

.helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.7rem;
    font-size: 0.85rem;
}

    .helper-row a {
        color: #2563eb;
        text-decoration: none;
    }

        .helper-row a:hover {
            text-decoration: underline;
        }

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .divider span {
        padding: 0 0.75rem;
    }

.profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

