/* RVRS - Redcross Vulnerability Record System */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Sarabun', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* Cards */
.card {
    border-radius: 12px;
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}
.table td {
    font-size: 14px;
}

/* Auth pages */
.auth-logo {
    width: 80px;
    margin-bottom: 20px;
}

/* Status badges */
.badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

/* Star rating */
.star-rating .star {
    transition: color 0.15s ease;
    font-size: 3rem;
}
.star-rating .star:hover {
    transform: scale(1.1);
}

/* Sidebar active */
.nav-link.active {
    font-weight: 600;
    background-color: rgba(255,255,255,0.15);
    border-radius: 6px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #dc3545; border-radius: 3px; }

/* Responsive table */
@media (max-width: 768px) {
    .table-responsive { font-size: 12px; }
    .btn-group-sm .btn { padding: 0.2rem 0.4rem; }
}

/* Loading spinner overlay */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Form controls */
.form-control:focus, .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Alert with danger theme */
.alert-danger {
    border-left: 4px solid #dc3545;
}
.alert-success {
    border-left: 4px solid #28a745;
}
.alert-warning {
    border-left: 4px solid #ffc107;
}
.alert-info {
    border-left: 4px solid #17a2b8;
}
