/* =============================================
   MIBI ONE - Plataforma de Servicio MCI
   Estilos completos basados en el prototipo React
   ============================================= */

/* -----------------
   Fuentes
   ----------------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Newsreader:wght@400;500;600;700&display=swap');

/* -----------------
   Variables CSS
   ----------------- */
:root {
    /* Fuentes */
    --font-body: 'Archivo', sans-serif;
    --font-display: 'Newsreader', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Colores - Mibi (Turquesa/Teal) */
    --mibi-50: #e8f7f6;
    --mibi-100: #d1efed;
    --mibi-200: #a3dfdb;
    --mibi-300: #75cfc9;
    --mibi-400: #47bfb7;
    --mibi-500: #2bb8b4;
    --mibi-600: #239e9b;
    --mibi-700: #1a8581;
    --mibi-800: #126b68;
    --mibi-900: #0a524f;
    
    /* Colores - Primarios (alias para compatibilidad) */
    --blue-50: #e8f7f6;
    --blue-100: #d1efed;
    --blue-200: #a3dfdb;
    --blue-500: #2bb8b4;
    --blue-600: #239e9b;
    --blue-800: #126b68;
    
    /* Colores - Neutros */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #374151;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Colores - Estados */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    
    --teal-500: #2bb8b4;
    --teal-600: #239e9b;
    
    --indigo-100: #e0e7ff;
    --indigo-800: #3730a3;
    
    --pink-100: #fce7f3;
    --pink-800: #9d174d;
    
    /* WhatsApp Colors */
    --wa-dark: #111b21;
    --wa-darker: #0b141a;
    --wa-panel: #1f2c34;
    --wa-input: #2a3942;
    --wa-green: #2bb8b4;
    --wa-bubble-out: #1a8581;
    --wa-bubble-in: #1f2c34;
    --wa-text: #e9edef;
    --wa-text-secondary: #8696a0;
}

/* -----------------
   Reset & Base
   ----------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate-800);
    background-color: var(--slate-50);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, button, textarea {
    font-family: inherit;
}

/* -----------------
   Scrollbar
   ----------------- */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 2px;
}

/* -----------------
   Animaciones
   ----------------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(43, 184, 180, 0.3); }
    50% { box-shadow: 0 0 20px rgba(43, 184, 180, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Clases de animación reutilizables */
.fade-up {
    animation: fadeUp 0.4s ease-out;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-in-scale {
    animation: fadeInScale 0.3s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.slide-in-down {
    animation: slideInDown 0.4s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Transiciones globales suaves */
a, button, input, select, textarea,
.card, .btn, .badge, .chip, .tag,
[class*="__card"], [class*="__item"], [class*="__row"] {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects para elementos interactivos */
.card:hover, [class*="__card"]:hover {
    transform: translateY(-2px);
}

/* Efecto de clic para botones */
button:active, .btn:active, [class*="__card"]:active {
    transform: scale(0.98);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Staggered animations para listas */
.stagger-item {
    opacity: 0;
    animation: fadeUp 0.4s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }
.stagger-item:nth-child(9) { animation-delay: 0.45s; }
.stagger-item:nth-child(10) { animation-delay: 0.5s; }

/* Page transition */
.page-enter {
    animation: fadeUp 0.5s ease-out;
}

/* Tooltip animation */
[data-tooltip]:hover::after {
    animation: fadeIn 0.2s ease-out;
}

/* -----------------
   Layout
   ----------------- */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -----------------
   User Bar (Top)
   ----------------- */
.user-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--slate-200);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-bar__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-bar__logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-bar__logo span {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.user-bar__name {
    font-size: 13px;
    font-weight: 600;
}

.user-bar__role {
    font-size: 11px;
    color: var(--slate-500);
    padding: 2px 8px;
    background: var(--slate-100);
    border-radius: 4px;
}

.user-bar__logout {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--slate-200);
    background: #fff;
    font-size: 12px;
    color: var(--slate-500);
    transition: all 0.2s;
}

.user-bar__logout:hover {
    background: var(--slate-50);
    color: var(--slate-700);
}

/* -----------------
   View Switcher (Bottom)
   ----------------- */
.view-switcher {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.view-switcher__btn {
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}

.view-switcher__btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.view-switcher__btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.view-switcher__icon {
    font-size: 15px;
}

.view-switcher__text {
    text-align: left;
}

.view-switcher__label {
    font-size: 11px;
    font-weight: 600;
}

.view-switcher__sub {
    font-size: 9px;
    opacity: 0.5;
}

/* -----------------
   Main Content
   ----------------- */
.main-content {
    padding-top: 50px;
    padding-bottom: 68px;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--slate-200);
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.login-logo img {
    height: 40px;
}

.login-logo__fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-logo__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.login-logo__text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.login-logo__text span {
    font-weight: 400;
    color: var(--slate-400);
}

.login-title {
    text-align: center;
    margin-bottom: 24px;
}

.login-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.login-title p {
    font-size: 14px;
    color: var(--slate-500);
}

.login-form__group {
    margin-bottom: 16px;
}

.login-form__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.login-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.login-form__input:focus {
    border-color: var(--teal-500);
}

.login-form__input-wrapper {
    position: relative;
}

.login-form__input-wrapper input {
    padding-right: 44px;
}

.login-form__toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    color: var(--slate-400);
}

.login-form__error {
    padding: 10px 14px;
    background: var(--red-50);
    border: 1px solid var(--red-200);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--red-800);
}

.login-form__submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.1s, opacity 0.2s;
}

.login-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
}

.login-form__submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer a {
    font-size: 13px;
    color: var(--teal-500);
    font-weight: 500;
}

/* =============================================
   STORE VIEW (WhatsApp Chat)
   ============================================= */
.store-view {
    max-width: 420px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--wa-dark);
}

.chat-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--wa-panel);
}

.chat-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wa-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header__avatar-inner {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
}

.chat-header__info {
    flex: 1;
}

.chat-header__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--wa-text);
}

.chat-header__status {
    font-size: 12px;
    color: var(--wa-text-secondary);
}

.chat-messages {
    flex: 1;
    overflow: auto;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--wa-darker);
}

.chat-message {
    display: flex;
    animation: fadeUp 0.2s ease;
}

.chat-message--user {
    justify-content: flex-end;
}

.chat-message--ai {
    justify-content: flex-start;
}

.chat-message__bubble {
    max-width: 82%;
    padding: 6px 8px 3px;
    border-radius: 8px;
}

.chat-message--user .chat-message__bubble {
    background: var(--wa-bubble-out);
    border-top-right-radius: 0;
}

.chat-message--ai .chat-message__bubble {
    background: var(--wa-bubble-in);
    border-top-left-radius: 0;
}

.chat-message__text {
    font-size: 13.5px;
    line-height: 1.45;
    white-space: pre-line;
    color: var(--wa-text);
}

.chat-message__meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    margin-top: 1px;
}

.chat-message__time {
    font-size: 10.5px;
    color: var(--wa-text-secondary);
}

.chat-message__check {
    color: #53bdeb;
}

.chat-typing {
    display: flex;
}

.chat-typing__bubble {
    padding: 10px 14px;
    border-radius: 8px;
    border-top-left-radius: 0;
    background: var(--wa-panel);
    display: flex;
    gap: 5px;
}

.chat-typing__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wa-text-secondary);
    animation: pulse 1.2s ease infinite;
}

.chat-typing__dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing__dot:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-quick-buttons {
    padding: 6px 10px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--wa-panel);
    border-top: 1px solid var(--wa-input);
}

.chat-quick-btn {
    padding: 5px 11px;
    border-radius: 99px;
    border: 1px solid var(--wa-input);
    background: transparent;
    font-size: 12px;
    color: var(--wa-text-secondary);
    transition: all 0.2s;
}

.chat-quick-btn:hover:not(:disabled) {
    color: var(--wa-text);
    border-color: var(--wa-text-secondary);
}

.chat-quick-btn:disabled {
    color: #3a4a54;
    cursor: default;
}

.chat-input-area {
    padding: 6px 8px;
    display: flex;
    gap: 6px;
    background: var(--wa-panel);
}

.chat-input {
    flex: 1;
    border: none;
    border-radius: 99px;
    padding: 9px 16px;
    font-size: 14px;
    outline: none;
    color: var(--wa-text);
    background: var(--wa-input);
}

.chat-input::placeholder {
    color: var(--wa-text-secondary);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--wa-green);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* =============================================
   CORPORATE VIEW (Dashboard)
   ============================================= */
.corporate-view {
    background: var(--slate-50);
    min-height: 100vh;
}

.corp-header {
    border-bottom: 1px solid var(--slate-200);
    background: #fff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.corp-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.corp-header__logo {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.corp-header__logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.corp-header__logo-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.corp-header__logo-text span {
    font-weight: 400;
    color: var(--slate-400);
}

.corp-header__subtitle {
    font-size: 12px;
    color: var(--slate-500);
}

.corp-tabs {
    display: flex;
    margin-left: 8px;
}

.corp-tab {
    padding: 12px 12px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    color: var(--slate-500);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.corp-tab:hover {
    color: var(--slate-700);
}

.corp-tab.active {
    font-weight: 600;
    color: var(--blue-800);
    border-bottom-color: var(--blue-800);
}

.corp-tab__badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 99px;
    background: var(--red-100);
    color: var(--red-800);
    font-family: var(--font-mono);
}

.corp-content {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid--overview {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

/* Card Base */
.card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 14px 16px;
}

.card--highlight-blue {
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border-color: var(--blue-300);
}

.card--highlight-green {
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    border-color: var(--green-200);
}

.card--highlight-red {
    border-color: var(--red-200);
}

.card--danger-left {
    border-left: 4px solid var(--red-500);
}

.card--warning-left {
    border-left: 4px solid var(--amber-500);
}

.card--info-left {
    border-left: 4px solid var(--blue-500);
}

.card--success-left {
    border-left: 4px solid var(--green-500);
}

.card__label {
    font-size: 9px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}

.card__label--blue {
    color: var(--blue-800);
}

.card__label--green {
    color: var(--green-800);
}

.card__label--red {
    color: var(--red-800);
}

.card__value {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.card__value--green {
    color: var(--green-800);
}

.card__value--amber {
    color: var(--amber-800);
}

.card__value--red {
    color: var(--red-800);
}

.card__subtext {
    font-size: 11px;
    color: var(--slate-500);
    margin-top: 4px;
}

.card__title {
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-display);
    margin-bottom: 10px;
}

/* CTA Card */
.cta-card {
    padding: 16px 18px;
    cursor: pointer;
}

.cta-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--blue-800);
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: 5px;
}

.cta-card__desc {
    font-size: 11px;
    color: var(--blue-500);
    line-height: 1.4;
    margin-bottom: 8px;
}

.cta-card__btn {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--blue-800);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border: none;
}

/* Score Badge */
.score {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.score--sm {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.score--md {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.score--lg {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.score--green {
    background: var(--green-100);
    color: var(--green-800);
}

.score--amber {
    background: var(--amber-100);
    color: var(--amber-800);
}

.score--red {
    background: var(--red-100);
    color: var(--red-800);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-bar__track {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: var(--slate-100);
}

.progress-bar__fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s;
}

.progress-bar__fill--green {
    background: var(--green-500);
}

.progress-bar__fill--amber {
    background: var(--amber-500);
}

.progress-bar__fill--red {
    background: var(--red-500);
}

.progress-bar__value {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    min-width: 38px;
    text-align: right;
}

/* Tags */
.tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.tag--critical {
    background: var(--red-100);
    color: var(--red-800);
}

.tag--high {
    background: var(--amber-100);
    color: var(--amber-800);
}

.tag--medium {
    background: var(--indigo-100);
    color: var(--indigo-800);
}

.tag--low {
    background: var(--slate-100);
    color: var(--slate-500);
}

.tag--good, .tag--success {
    background: var(--green-100);
    color: var(--green-800);
}

.tag--info, .tag--mibi {
    background: var(--blue-100);
    color: var(--blue-800);
}

.tag--penalty {
    background: var(--red-100);
    color: var(--red-800);
}

.tag--renegotiation {
    background: var(--amber-100);
    color: var(--amber-800);
}

.tag--renewal {
    background: var(--indigo-100);
    color: var(--indigo-800);
}

.tag--replacement {
    background: var(--pink-100);
    color: var(--pink-800);
}

/* Money Display */
.money {
    font-weight: 700;
    font-family: var(--font-mono);
}

.money--sm {
    font-size: 10px;
}

.money--md {
    font-size: 13px;
}

.money--lg {
    font-size: 18px;
}

.money--xl {
    font-size: 24px;
}

.money--red {
    color: var(--red-800);
}

.money--green {
    color: var(--green-800);
}

/* List Items */
.list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--slate-100);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item--alert {
    background: #fffbfb;
    margin: 0 -14px;
    padding: 7px 14px;
}

.list-item__content {
    flex: 1;
    min-width: 0;
}

.list-item__title {
    font-size: 12px;
    font-weight: 600;
}

.list-item__subtitle {
    font-size: 10px;
    color: var(--slate-400);
}

.list-item__value {
    text-align: right;
}

.list-item__number {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.list-item__label {
    font-size: 9px;
    color: var(--slate-400);
}

/* Days Badge */
.days-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.days-badge--critical {
    background: var(--red-100);
    color: var(--red-800);
}

.days-badge--warning {
    background: var(--amber-100);
    color: var(--amber-800);
}

.days-badge--normal {
    background: var(--slate-100);
    color: var(--slate-500);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table__header {
    display: grid;
    gap: 4px;
    padding: 8px 14px;
    font-size: 9px;
    color: var(--slate-400);
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
}

.data-table__row {
    display: grid;
    gap: 4px;
    padding: 8px 14px;
    align-items: center;
    border-bottom: 1px solid var(--slate-100);
}

.data-table__row--alert {
    background: var(--red-50);
    border-left: 3px solid var(--red-500);
}

.data-table__row--warning {
    background: var(--amber-50);
    border-left: 3px solid var(--amber-500);
}

/* Approval Box */
.approval-box {
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border: 1px solid var(--blue-200);
    border-radius: 10px;
    padding: 14px;
}

.approval-box__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-800);
    margin-bottom: 8px;
}

.approval-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--blue-100);
}

.approval-item:last-child {
    border-bottom: none;
}

.approval-item__title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.approval-item__desc {
    font-size: 12px;
    color: var(--slate-600);
    line-height: 1.5;
}

.approval-item__actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* Buttons */
.btn {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--primary {
    background: var(--blue-800);
    color: #fff;
}

.btn--primary:hover {
    background: var(--blue-600);
}

.btn--secondary {
    background: #fff;
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
}

.btn--secondary:hover {
    background: var(--slate-50);
}

/* IT Heatmap */
.heatmap {
    overflow-x: auto;
}

.heatmap__grid {
    display: grid;
    gap: 2px;
}

.heatmap__label {
    font-size: 9px;
    font-weight: 600;
    color: var(--slate-400);
    font-family: var(--font-mono);
    text-align: center;
    padding: 4px 2px;
}

.heatmap__store {
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px;
}

.heatmap__store-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--red-100);
    color: var(--red-800);
    font-family: var(--font-mono);
}

.heatmap__cell {
    height: 32px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-100);
}

.heatmap__cell-value {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.heatmap__legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--slate-400);
}

.heatmap__legend-item {
    width: 14px;
    height: 10px;
    border-radius: 2px;
}

/* Pattern Alert */
.pattern-alert {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--red-50);
    border: 1px solid var(--red-200);
    font-size: 12px;
    color: var(--red-800);
    line-height: 1.5;
}

/* IT Events Timeline */
.timeline {
    max-height: 460px;
    overflow-y: auto;
}

.timeline__date {
    padding: 6px 16px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-100);
    border-top: 1px solid var(--slate-200);
}

.timeline__date:first-child {
    border-top: none;
}

.timeline__date-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-700);
    font-family: var(--font-mono);
}

.timeline__event {
    display: grid;
    gap: 5px;
    padding: 9px 16px;
    align-items: center;
    border-bottom: 1px solid var(--slate-100);
}

.timeline__event--reinc {
    background: var(--amber-50);
}

.reinc-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--amber-100);
    color: var(--amber-800);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

/* Timeline Summary */
.timeline-summary {
    padding: 10px 16px;
    border-top: 1px solid var(--slate-200);
    background: var(--slate-50);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.timeline-summary__item-label {
    font-size: 9px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 600;
}

.timeline-summary__item-value {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
    background: var(--slate-100);
}

.view-toggle__btn {
    padding: 5px 14px;
    border-radius: 5px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    color: var(--slate-500);
    cursor: pointer;
}

.view-toggle__btn.active {
    background: #fff;
    color: var(--blue-800);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Savings Header */
.savings-header {
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    border: 1px solid var(--green-200);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.savings-header__title {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--green-800);
}

.savings-header__subtitle {
    font-size: 12px;
    color: var(--green-700);
    margin-top: 2px;
}

/* Savings Item */
.savings-item {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.savings-item--critical {
    border-color: var(--red-200);
    border-left: 4px solid var(--red-500);
}

.savings-item--high {
    border-color: var(--amber-200);
    border-left: 4px solid var(--amber-500);
}

.savings-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.savings-item__content {
    flex: 1;
}

.savings-item__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.savings-item__provider {
    font-size: 10px;
    color: var(--slate-500);
    font-family: var(--font-mono);
}

.savings-item__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.savings-item__desc {
    font-size: 12px;
    color: var(--slate-500);
}

.savings-item__value {
    text-align: right;
    flex-shrink: 0;
    margin-left: 16px;
}

.savings-item__amount {
    font-size: 20px;
}

.savings-item__label {
    font-size: 9px;
    color: var(--green-800);
    font-family: var(--font-mono);
}

/* Action Item */
.action-item {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
}

.action-item--approval {
    background: linear-gradient(135deg, #fafbff, var(--blue-50));
    border-color: var(--blue-200);
    border-left: 4px solid var(--blue-500);
}

.action-item--auto {
    border-left: 4px solid var(--green-500);
}

.action-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.action-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-item__store {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--slate-500);
}

.action-item__time {
    font-size: 10px;
    color: var(--slate-400);
    font-family: var(--font-mono);
}

.action-item__title {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    margin-bottom: 3px;
}

.action-item__desc {
    font-size: 12px;
    color: var(--slate-600);
    line-height: 1.5;
}

.action-item__note {
    font-size: 10px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    margin-top: 4px;
}

.action-item__actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* =============================================
   PROVIDER VIEW
   ============================================= */
.provider-view {
    background: var(--slate-50);
    min-height: 100vh;
}

.prov-header {
    border-bottom: 1px solid var(--slate-200);
    background: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prov-header__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prov-header__logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.prov-header__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.prov-header__title span {
    font-weight: 400;
    color: var(--slate-400);
}

.prov-header__portal {
    font-size: 12px;
    color: var(--slate-400);
    margin-left: 8px;
}

.prov-header__provider {
    font-size: 13px;
    font-weight: 600;
}

.prov-content {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* Provider Stats */
.prov-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.prov-stat {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 14px 16px;
}

.prov-stat--success {
    border-color: var(--green-200);
}

.prov-stat__label {
    font-size: 9px;
    color: var(--slate-400);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}

.prov-stat__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prov-stat__title {
    font-size: 12px;
    font-weight: 600;
}

.prov-stat__subtitle {
    font-size: 10px;
    color: var(--slate-400);
}

.prov-stat__value {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--blue-800);
}

.prov-stat__extra {
    font-size: 10px;
    color: var(--slate-400);
    margin-top: 3px;
}

.prov-stat__company {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* Service Orders */
.service-orders {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    overflow: hidden;
}

.service-orders__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-orders__title {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
}

.service-order {
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-100);
}

.service-order:last-child {
    border-bottom: none;
}

.service-order__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.service-order__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-order__id {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--blue-800);
    font-weight: 600;
}

.service-order__cat {
    font-size: 10px;
    color: var(--slate-500);
    font-family: var(--font-mono);
}

.service-order__store {
    font-size: 10px;
    color: var(--slate-400);
    font-family: var(--font-mono);
}

.service-order__title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.service-order__details {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--slate-500);
}

.service-order__details strong {
    color: var(--slate-700);
}

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--slate-200);
    border-top-color: var(--teal-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
}

.loading-screen__text {
    font-size: 14px;
    color: var(--slate-500);
    margin-left: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
    .cards-grid--4,
    .cards-grid--overview,
    .prov-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .corp-header {
        flex-direction: column;
        padding: 12px;
    }
    
    .corp-tabs {
        margin-left: 0;
        overflow-x: auto;
        width: 100%;
    }
    
    .cards-grid--4,
    .cards-grid--overview,
    .cards-grid--3,
    .prov-stats {
        grid-template-columns: 1fr;
    }
    
    .view-switcher {
        flex-wrap: wrap;
        width: 90%;
        justify-content: center;
    }
}

/* Hide elements */
.hidden {
    display: none !important;
}

/* Visible elements */
.visible {
    display: block !important;
}

/* ============================================
   KNOWLEDGE BASE STYLES
   ============================================ */

.knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.knowledge-header__title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--slate-800);
}

.knowledge-header__subtitle {
    font-size: 13px;
    color: var(--slate-500);
    margin-top: 2px;
}

.knowledge-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.knowledge-stat {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.knowledge-stat__value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--turquesa-600);
}

.knowledge-stat__value--green {
    color: var(--green-600);
}

.knowledge-stat__value--red {
    color: var(--red-600);
}

.knowledge-stat__label {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 4px;
}

.knowledge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}

.knowledge-item:last-child {
    border-bottom: none;
}

.knowledge-item__icon {
    width: 40px;
    height: 40px;
    background: var(--turquesa-50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.knowledge-item__content {
    flex: 1;
    min-width: 0;
}

.knowledge-item__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.knowledge-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.knowledge-item__actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Large Modal Variant */
.modal__content--large {
    max-width: 800px;
    max-height: 85vh;
}

/* Upload Tabs */
.upload-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: var(--slate-100);
    border-radius: 8px;
}

.upload-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    transition: all 0.2s;
}

.upload-tab:hover {
    color: var(--slate-800);
}

.upload-tab.active {
    background: white;
    color: var(--red-500);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.upload-tab svg {
    flex-shrink: 0;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--slate-300);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--slate-50);
    margin-bottom: 20px;
}

.dropzone:hover {
    border-color: var(--red-400);
    background: var(--red-50);
}

.dropzone--active {
    border-color: var(--red-500);
    background: var(--red-50);
    transform: scale(1.01);
}

.dropzone__icon {
    margin-bottom: 16px;
    color: var(--slate-400);
}

.dropzone:hover .dropzone__icon,
.dropzone--active .dropzone__icon {
    color: var(--red-500);
}

.dropzone__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.dropzone__text strong {
    font-size: 16px;
    color: var(--slate-700);
}

.dropzone__text span {
    font-size: 14px;
    color: var(--slate-500);
}

.dropzone__hint {
    font-size: 12px;
    color: var(--slate-400);
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    margin-bottom: 20px;
}

.file-preview__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-50);
    border-radius: 8px;
}

.file-preview__info {
    flex: 1;
    min-width: 0;
}

.file-preview__name {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview__size {
    font-size: 13px;
    color: var(--slate-500);
    margin-top: 2px;
}

.file-preview__remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--slate-400);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-preview__remove:hover {
    background: var(--red-100);
    color: var(--red-600);
}

/* Upload fields */
.upload-fields {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.modal__subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

/* Document Content Styles */
.document-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--slate-700);
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    background: var(--slate-50);
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.document-content p {
    margin-bottom: 12px;
}

.document-content p:empty {
    display: none;
}

.document-content__section {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--slate-200);
}

.document-content__section:first-child {
    margin-top: 0;
}

/* Spin animation for loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-200);
}

.modal__header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: var(--slate-400);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    background: var(--slate-100);
    color: var(--slate-600);
}

.modal__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--slate-200);
    background: var(--slate-50);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--turquesa-500);
    box-shadow: 0 0 0 3px var(--turquesa-100);
}

.form-input::placeholder {
    color: var(--slate-400);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 11px;
    color: var(--slate-400);
    margin-top: 4px;
}

/* Button Icon */
.btn--icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: all 0.2s;
}

.btn--icon:hover {
    background: var(--slate-100);
}

.btn--danger {
    color: var(--red-600);
    border-color: var(--red-200);
}

.btn--danger:hover {
    background: var(--red-50);
    border-color: var(--red-300);
}

@media (max-width: 768px) {
    .knowledge-stats {
        grid-template-columns: 1fr;
    }
    
    .knowledge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .modal__content {
        width: 95%;
        margin: 10px;
    }
}
/* ============================================
   PENALTY MODAL STYLES
   ============================================ */

.penalty-header {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #fef2f2, #fff);
    border-radius: 12px;
    margin-bottom: 20px;
}

.penalty-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--red-600);
    font-family: var(--font-mono);
}

.penalty-provider {
    font-size: 16px;
    color: var(--slate-600);
    margin-top: 4px;
}

.penalty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.penalty-card {
    background: var(--slate-50);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.penalty-card--highlight {
    background: var(--red-50);
}

.penalty-card__label {
    font-size: 11px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.penalty-card__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-800);
}

.penalty-card--highlight .penalty-card__value {
    color: var(--red-600);
}

.penalty-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--slate-200);
}

.penalty-ticket {
    background: var(--slate-50);
    border-radius: 8px;
    padding: 16px;
}

.penalty-ticket__title {
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 6px;
}

.penalty-ticket__desc {
    font-size: 13px;
    color: var(--slate-600);
    margin-bottom: 12px;
    line-height: 1.5;
}

.penalty-ticket__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .penalty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}