/*
 * Online Complaint Registration & Management System
 * Custom Styles, Timeline Steppers, and Print Engine
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --brand-primary: #6366f1;
    --brand-secondary: #8b5cf6;
    --bg-dark: #0b0f19;
    --card-dark: #131b2e;
    --border-dark: #1e293b;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: #e2e8f0;
    min-height: 100vh;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(19, 27, 46, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.15);
}

/* Dynamic Tracking Stepper */
.stepper-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stepper-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: #334155;
    z-index: 1;
    transition: background-color 0.4s ease;
}

.stepper-step.completed:not(:last-child)::after {
    background-color: #10b981;
}

.stepper-step.active:not(:last-child)::after {
    background: linear-gradient(to right, #6366f1, #334155);
}

.stepper-circle {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    background-color: #1e293b;
    border: 2px solid #334155;
    color: #94a3b8;
}

.stepper-step.completed .stepper-circle {
    background-color: #10b981;
    border-color: #059669;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.stepper-step.active .stepper-circle {
    background-color: #6366f1;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Star Rating Controls */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #475569;
    transition: color 0.2s ease;
    padding: 0 2px;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #fbbf24;
}

/* Modal Transitions */
.modal-overlay {
    background-color: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(8px);
}

/* Official Printable Receipt Styling */
@media print {
    body {
        background-color: #ffffff !important;
        color: #0f172a !important;
        font-size: 12pt;
    }

    #ocms-demo-bar,
    nav,
    footer,
    .no-print,
    #toast-container {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .printable-receipt {
        border: 2px solid #0f172a !important;
        border-radius: 8px !important;
        padding: 24px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    .printable-receipt * {
        color: #0f172a !important;
        border-color: #cbd5e1 !important;
    }

    .badge-print {
        border: 1px solid #0f172a !important;
        padding: 2px 8px !important;
        font-weight: bold !important;
    }
}

.print-only {
    display: none;
}
