/* ==========================================================================
   Global Utility Classes - Sprint Care Auto
   ========================================================================== */


/* --- CSS Custom Properties (Variables) --- */

:root {
    --color-red: #dc2626;
    --color-red-dark: #b91c1c;
    --color-dark: #171717;
    --color-dark-hover: #2a2a2a;
    --color-white: #ffffff;
    --color-light: #f8fafc;
    --color-muted: #64748b;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.2s ease-in-out;
}


/* --- Container & Layout --- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}

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

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


/* --- Typography Helpers --- */

.text-red {
    color: var(--color-red) !important;
}

.text-dark {
    color: var(--color-dark) !important;
}

.text-white {
    color: var(--color-white) !important;
}

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

.text-success {
    color: #10b981 !important;
}

.text-sm {
    font-size: 0.875rem !important;
}


/* --- Background Helpers --- */

.bg-red {
    background-color: var(--color-red) !important;
}

.bg-dark {
    background-color: var(--color-dark) !important;
}

.bg-white {
    background-color: var(--color-white) !important;
}

.bg-light {
    background-color: var(--color-light) !important;
}


/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-red-dark);
}

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

.btn-dark:hover {
    background-color: var(--color-dark-hover);
}

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

.btn-white:hover {
    background-color: #f1f1f1;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-outline-danger {
    background-color: transparent;
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

.btn-outline-danger:hover {
    background-color: var(--color-red);
    color: var(--color-white);
}


/* Button Modifiers */

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}


/* --- Spacing Utilities (Margin & Padding) --- */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}


/* Margins */

.mt-xs {
    margin-top: 0.5rem;
}

.mt-s {
    margin-top: 1rem;
}

.mt-m {
    margin-top: 2rem;
}

.mt-l {
    margin-top: 3rem;
}

.mb-xs {
    margin-bottom: 0.5rem;
}

.mb-s {
    margin-bottom: 1rem;
}

.mb-m {
    margin-bottom: 2rem;
}

.mb-l {
    margin-bottom: 3rem;
}

.ml-s {
    margin-left: 0.5rem;
}

.mr-s {
    margin-right: 0.5rem;
}


/* Paddings */

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pb-xs {
    padding-bottom: 0.5rem;
}


/* --- Visibility & Display --- */

.hidden {
    display: none !important;
}


/* --- Alerts --- */

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: var(--color-red);
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}


/* --- Misc Helpers --- */

.border-bottom {
    border-bottom: 1px solid #e2e8f0;
}