/**
 * ACC System - Design System & UI Kit
 * 
 * Prefix: .acc-system
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* --- Brand Core --- */
    --acc-primary: #000000;
    /* Deep Black */
    --acc-primary-light: #1f2937;
    /* Dark Gray */
    --acc-primary-lighter: #374151;
    /* Lighter Gray */

    --acc-accent: #64ffda;
    /* Electric Cyan (Used mostly in dark mode, but keeping fallback) */
    --acc-accent-hover: #4cd6b3;

    --acc-secondary: #8892b0;
    /* Muted Blue-Grey */

    /* --- Functional --- */
    --acc-success: #00c853;
    --acc-warning: #ffd600;
    --acc-danger: #ff5252;
    --acc-info: #2979ff;

    /* --- Neutrals --- */
    --acc-bg: #f4f7f6;
    /* Page Background */
    --acc-surface: #ffffff;
    /* Card Background */
    --acc-text-main: #0a192f;
    /* Primary Text */
    --acc-text-muted: #525f7f;
    /* Secondary Text */
    --acc-text-inverse: #ffffff;
    --acc-border: #e2e8f0;
    --acc-border-light: #edf2f7;

    /* --- Typography --- */
    --acc-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --acc-font-size-xs: 0.75rem;
    --acc-font-size-sm: 0.875rem;
    --acc-font-size-base: 1rem;
    --acc-font-size-lg: 1.125rem;
    --acc-font-size-xl: 1.25rem;
    --acc-font-size-2xl: 1.5rem;
    --acc-font-size-3xl: 2rem;

    /* --- Spacing --- */
    --acc-space-xs: 0.25rem;
    --acc-space-sm: 0.5rem;
    --acc-space-md: 1rem;
    --acc-space-lg: 1.5rem;
    --acc-space-xl: 2rem;
    --acc-space-2xl: 3rem;

    /* --- Radius & Shadow --- */
    --acc-radius-sm: 6px;
    --acc-radius-md: 12px;
    --acc-radius-lg: 20px;
    --acc-radius-full: 9999px;

    --acc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --acc-shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --acc-shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    --acc-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* --- Dark Mode Variables --- */
body.acc-dark-mode {
    --acc-bg: #020c1b;
    --acc-surface: #112240;
    --acc-primary: #64ffda;
    /* In dark mode, primary often becomes the accent for visibility */
    --acc-primary-light: #ccd6f6;
    /* Used for text headers maybe? */

    --acc-text-main: #e6f1ff;
    --acc-text-muted: #8892b0;
    --acc-text-inverse: #0a192f;

    --acc-border: #233554;
    --acc-border-light: #1e3a8a;

    --acc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --acc-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
    --acc-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Override primary button text in dark mode if needed to ensure contrast */
body.acc-dark-mode .acc-btn-primary {
    color: #0a192f;
    font-weight: 700;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Button Font */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: 'Poppins', sans-serif;
}

/* Specific override for user requested #bg container */
body.acc-dark-mode #bg {
    background-color: var(--acc-bg) !important;
    transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
}

/* Specific styling for "+ Report New Incident" button on dashboard */
/* From Uiverse.io by cssbuttons-io */
.acc-btn-report-incident {
    align-items: center;
    background-image: linear-gradient(144deg, #af40ff, #5b42f3 50%, #00ddeb);
    border: 0;
    border-radius: 8px;
    box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
    color: #ffffff;
    display: flex;
    font-size: 18px;
    justify-content: center;
    line-height: 1em;
    max-width: 100%;
    min-width: 140px;
    padding: 3px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.acc-btn-report-incident:active,
.acc-btn-report-incident:hover {
    outline: 0;
}

.acc-btn-report-incident span {
    background-color: rgb(5, 6, 45);
    font-family: 'Poppins', sans-serif !important;
    padding: 16px 24px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    transition: 300ms;
}

.acc-btn-report-incident:hover span {
    background: none;
}

.acc-btn-report-incident:active {
    transform: scale(0.9);
}

/* --- Scoped Reset --- */
.acc-system,
.acc-wrapper {
    font-family: var(--acc-font-family);
    color: var(--acc-text-main);
    line-height: 1.6;
    font-size: var(--acc-font-size-base);
    box-sizing: border-box;
}

.acc-system *,
.acc-system *::before,
.acc-system *::after,
.acc-wrapper *,
.acc-wrapper *::before,
.acc-wrapper *::after {
    box-sizing: inherit;
}

/* --- Layout Utilities --- */
.acc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--acc-space-md);
}

.acc-grid {
    display: grid;
    gap: var(--acc-space-md);
}

.acc-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.acc-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.acc-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.acc-flex {
    display: flex;
    gap: var(--acc-space-md);
    flex-wrap: wrap;
}

.acc-flex-col {
    flex-direction: column;
}

.acc-flex-nowrap {
    flex-wrap: nowrap;
}

.acc-items-center {
    align-items: center;
}

.acc-items-start {
    align-items: flex-start;
}

.acc-items-end {
    align-items: flex-end;
}

.acc-justify-between {
    justify-content: space-between;
}

.acc-justify-center {
    justify-content: center;
}

.acc-justify-end {
    justify-content: flex-end;
}

/* --- Spacing Utilities --- */
.acc-m-0 {
    margin: 0 !important;
}

.acc-mt-sm {
    margin-top: var(--acc-space-sm) !important;
}

.acc-mt-md {
    margin-top: var(--acc-space-md) !important;
}

.acc-mt-lg {
    margin-top: var(--acc-space-lg) !important;
}

.acc-mt-xl {
    margin-top: var(--acc-space-xl) !important;
}

.acc-mb-xs {
    margin-bottom: var(--acc-space-xs) !important;
}

.acc-mb-sm {
    margin-bottom: var(--acc-space-sm) !important;
}

.acc-mb-md {
    margin-bottom: var(--acc-space-md) !important;
}

.acc-mb-lg {
    margin-bottom: var(--acc-space-lg) !important;
}

.acc-mb-xl {
    margin-bottom: var(--acc-space-xl) !important;
}

.acc-p-md {
    padding: var(--acc-space-md) !important;
}

.acc-p-lg {
    padding: var(--acc-space-lg) !important;
}

/* --- Typography Utilities --- */
.acc-text-center {
    text-align: center;
}

.acc-text-right {
    text-align: right;
}

.acc-text-left {
    text-align: left;
}

.acc-text-sm {
    font-size: var(--acc-font-size-sm);
}

.acc-text-lg {
    font-size: var(--acc-font-size-lg);
}

.acc-text-xl {
    font-size: var(--acc-font-size-xl);
}

.acc-text-2xl {
    font-size: var(--acc-font-size-2xl);
}

.acc-font-bold {
    font-weight: 700;
}

.acc-font-medium {
    font-weight: 500;
}

.acc-text-primary {
    color: var(--acc-primary);
}

.acc-text-accent {
    color: var(--acc-accent);
}

.acc-text-muted {
    color: var(--acc-text-muted);
}

.acc-text-danger {
    color: var(--acc-danger);
}

.acc-text-success {
    color: var(--acc-success);
}

.acc-text-white {
    color: white;
}

/* --- Component: Buttons --- */
.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--acc-radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: var(--acc-font-size-sm);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1;
    gap: 0.5rem;
}

.acc-btn:hover {
    transform: translateY(-2px);
}

.acc-btn:active {
    transform: translateY(0) scale(0.98);
}

.acc-btn-primary {
    background-color: var(--acc-primary);
    color: var(--acc-text-inverse);
    box-shadow: var(--acc-shadow-sm);
}

.acc-btn-primary:hover {
    background-color: var(--acc-primary-lighter);
    color: var(--acc-accent);
    box-shadow: var(--acc-shadow-md);
}

.acc-btn-secondary {
    background-color: var(--acc-surface);
    border-color: var(--acc-border);
    color: var(--acc-text-main);
}

.acc-btn-secondary:hover {
    background-color: var(--acc-bg);
    border-color: var(--acc-text-muted);
}

.acc-btn-danger {
    background-color: var(--acc-danger);
    color: white;
}

.acc-btn-danger:hover {
    background-color: #d32f2f;
    box-shadow: var(--acc-shadow-md);
}

.acc-btn-ghost {
    background: transparent;
    color: var(--acc-text-muted);
}

.acc-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--acc-primary);
}

.acc-btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--acc-font-size-xs);
}

.acc-btn-lg {
    padding: 1rem 2rem;
    font-size: var(--acc-font-size-base);
}

.acc-btn-full {
    width: 100%;
}

/* --- Component: Cards --- */
.acc-card {
    background: var(--acc-surface);
    border-radius: var(--acc-radius-md);
    padding: var(--acc-space-lg);
    box-shadow: var(--acc-shadow-sm);
    border: 1px solid var(--acc-border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-card-hover:hover,
.acc-card:hover {
    box-shadow: var(--acc-shadow-md);
    transform: translateY(-4px);
}

.acc-card-header {
    margin-bottom: var(--acc-space-md);
    padding-bottom: var(--acc-space-sm);
    border-bottom: 1px solid var(--acc-border-light);
}

.acc-card-header.acc-no-border {
    border-bottom: none;
}

.acc-card-title {
    font-size: var(--acc-font-size-lg);
    font-weight: 700;
    color: var(--acc-primary);
    margin: 0;
}

.acc-card-body {
    flex: 1;
}

.acc-card-footer {
    margin-top: var(--acc-space-md);
    padding-top: var(--acc-space-md);
    border-top: 1px solid var(--acc-border-light);
}

/* --- Component: Forms --- */
.acc-form-group {
    margin-bottom: var(--acc-space-lg);
}

.acc-label {
    display: block;
    margin-bottom: var(--acc-space-xs);
    font-weight: 500;
    color: var(--acc-text-main);
    font-size: var(--acc-font-size-sm);
}

.acc-input,
.acc-select,
.acc-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-sm);
    font-size: var(--acc-font-size-base);
    background: var(--acc-bg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--acc-text-main);
}

.acc-input:hover,
.acc-select:hover,
.acc-textarea:hover {
    border-color: var(--acc-text-muted);
}

.acc-input:focus,
.acc-select:focus,
.acc-textarea:focus {
    border-color: var(--acc-primary);
    background: var(--acc-surface);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.acc-help-text {
    display: block;
    margin-top: var(--acc-space-xs);
    font-size: var(--acc-font-size-xs);
    color: var(--acc-text-muted);
}

/* --- Component: Badges --- */
.acc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.75em;
    border-radius: var(--acc-radius-full);
    font-size: var(--acc-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.acc-badge-success {
    background: rgba(0, 200, 83, 0.1);
    color: var(--acc-success);
    border: 1px solid transparent;
}

.acc-badge-warning {
    background: rgba(255, 214, 0, 0.1);
    color: #b38f00;
    border: 1px solid transparent;
}

.acc-badge-danger {
    background: rgba(255, 82, 82, 0.1);
    color: var(--acc-danger);
    border: 1px solid transparent;
}

.acc-badge-info {
    background: rgba(41, 121, 255, 0.1);
    color: var(--acc-info);
    border: 1px solid transparent;
}

.acc-badge-neutral {
    background: var(--acc-bg);
    color: var(--acc-text-muted);
    border: 1px solid var(--acc-border);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {

    .acc-grid-2,
    .acc-grid-3,
    .acc-grid-4 {
        grid-template-columns: 1fr;
    }

    .acc-flex {
        flex-direction: column;
    }

    .acc-btn {
        width: 100%;
    }
}

/* --- Component: Wizard --- */
.acc-wizard-progress {
    display: flex;
    justify-content: center;
    gap: var(--acc-space-md);
    margin-bottom: var(--acc-space-xl);
}

.acc-wizard-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--acc-bg);
    border: 2px solid var(--acc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--acc-text-muted);
    transition: all 0.3s ease;
}

.acc-wizard-step-dot.active {
    border-color: var(--acc-primary);
    background: var(--acc-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.1);
}

.acc-wizard-step-dot.completed {
    border-color: var(--acc-success);
    background: var(--acc-success);
    color: white;
}

.acc-step-content {
    display: none;
    animation: accFadeIn 0.4s ease;
}

.acc-step-content.active {
    display: block;
}

@keyframes accFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}