/* Custom Styles for Internal FSSAI Compliance & Restaurant Inspection System */

:root {
    --fssai-primary: #0d6efd;
    --fssai-surface: #ffffff;
    --fssai-muted: #64748b;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.kpi-card {
    border: 0;
    border-radius: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.08) !important;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Mobile-first Inspection Parameter Card */
.question-card {
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-card.state-C {
    border-left: 5px solid #198754;
}

.question-card.state-NC {
    border-left: 5px solid #dc3545;
}

.question-card.state-PC {
    border-left: 5px solid #ffc107;
}

.question-card.state-NA {
    border-left: 5px solid #6c757d;
}

.question-card.needs-photo {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

/* Touch-friendly Status Pills */
.status-pill-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .status-pill-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

.status-pill-btn {
    padding: 0.65rem 0.5rem;
    font-weight: 600;
    border-radius: 0.6rem !important;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

/* Photo Thumbnail Grid */
.photo-thumb-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.photo-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.photo-delete-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    font-size: 0.7rem;
}

/* Sticky Mobile Summary Bar */
.sticky-inspect-bar {
    position: sticky;
    top: 56px;
    z-index: 1015;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e2e8f0;
}

/* Print / PDF Styles */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        font-size: 11pt;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
    }
    .page-break {
        page-break-before: always;
    }
}
