/* ========================================
   ARMIS Support - Base Stylesheet
   ======================================== */

/* CSS Custom Properties / Design Tokens */
:root {
    /* Colors */
    --primary-white: #FFFFFF;
    --primary-black: #000000;

    --color-link: #4E1683;
    --color-link-hover: #7B13EB;

    --color-primary-button: #6B21A8;
    --color-border-focus: #194185;

    /* Light Backgrounds */
    --color-background-light: #F9FAFB;
    --color-background-card: #F4F5FA;
    --color-background-input: #FFFFFF;

    --color-text-primary: #171717;
    --color-text-secondary: #A0A0AB;
    --color-text-muted: #70707B;

    --color-border: #CBD5E1;

    /* Dark Backgrounds */
    --color-background-dark: #171717;
    --color-background-card-dark: #2A2A2E;
    --color-background-input-dark: #1A1A1E;

    --color-text-white: #FAFAFA;
    --color-text-primary-dark: #D1D1D6;
    --color-text-secondary-dark: #A0A0AB;
    --color-text-muted-dark: #70707B;

    --color-border-dark: #475569;

    /* Typography */
    --font-family-base: "Archivo", "Segoe UI", "Roboto", sans-serif;

    --font-size-xs: 0.6875rem; /* 11px */
    --font-size-sm: 0.8125rem; /* 13px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 3rem; /* 48px */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-none: 6.25rem;
    --line-height-normal: 1rem;
    --line-height-custom: 3rem;

    /* Spacing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem; /* 8px */
    --spacing-md: 1rem; /* 16px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    --spacing-2xl: 3rem; /* 48px */

    /* Border Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;

    /* Shadows */
    --shadow-2xs: 0 1px 0 rgba(0, 0, 0, 0.5);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 2px 1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 25px 25px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;

    /* ========================================
       ACS Component Extension Tokens
       ======================================== */

    /* Brand Colors (matching actual component values) */
    --color-brand-primary: #2D0070;
    --color-brand-primary-hover: #3C008C;
    --color-brand-primary-dark: #1E004B;
    --color-brand-primary-light: #4B1E8C;
    --color-brand-alpha-05: rgba(45, 0, 112, 0.05);
    --color-brand-alpha-10: rgba(45, 0, 112, 0.1);
    --color-brand-alpha-12: rgba(45, 0, 112, 0.12);
    --color-brand-alpha-15: rgba(45, 0, 112, 0.15);
    --color-brand-alpha-20: rgba(45, 0, 112, 0.2);
    --color-brand-alpha-30: rgba(45, 0, 112, 0.3);

    /* Font Families (matching actual component fonts) */
    --font-family-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-body: 'Source Sans 3', 'Proxima Nova', -apple-system, sans-serif;

    /* Status Badge Colors */
    --color-status-new-bg: #dbeafe;
    --color-status-new-text: #1d4ed8;
    --color-status-working-bg: #fef3c7;
    --color-status-working-text: #b45309;
    --color-status-on-hold-bg: #fee2e2;
    --color-status-on-hold-text: #b91c1c;
    --color-status-escalated-bg: #fce7f3;
    --color-status-escalated-text: #be185d;
    --color-status-awaiting-bg: rgba(45, 0, 112, 0.1);
    --color-status-awaiting-text: #2D0070;
    --color-status-closed-bg: #d1fae5;
    --color-status-closed-text: #047857;

    /* Priority Badge Colors */
    --color-priority-critical-bg: #fef2f2;
    --color-priority-critical-text: #dc2626;
    --color-priority-high-bg: #fff7ed;
    --color-priority-high-text: #ea580c;
    --color-priority-medium-bg: #fefce8;
    --color-priority-medium-text: #ca8a04;
    --color-priority-low-bg: #f0fdf4;
    --color-priority-low-text: #16a34a;

    /* Semantic Colors */
    --color-error: #dc2626;
    --color-error-bg: #fef2f2;
    --color-warning: #f59e0b;
    --color-warning-bg: #fef3c7;
    --color-success: #22c55e;
    --color-success-bg: #f0fdf4;

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(45, 0, 112, 0.3);

    /* Corrected shadows (component-accurate alphas) */
    --shadow-subtle-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-subtle-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-subtle-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    /* Additional border color */
    --color-border-light: #e5e5e5;
}

/* ========================================
     Base Styles
     ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--primary-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
     Typography
     ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-normal);
}

h1 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-custom);
}

h2 {
    font-size: var(--font-size-3xl);
    line-height: 2rem;
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.875rem;
}

h4 {
    font-size: var(--font-size-base);
    line-height: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-link-hover);
}

/* ========================================
     Form Elements
     ======================================== */

label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    color: var(--color-text-primary);
    background-color: var(--color-background-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input::placeholder {
    color: var(--color-text-muted);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================
     Buttons
     ======================================== */

button {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-primary {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-text-primary);
    background-color: var(--color-primary-button);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-link-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ========================================
     Card / Modal
     ======================================== */

.card {
    background-color: var(--color-background-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-card);
}

.modal {
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================
     Header / Navigation
     ======================================== */

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 92px;
    background-color: var(--primary-white);
    gap: 48px;
    flex-shrink: 0;
}

.logo {
    width: 230px;
    height: 54px;
    flex-shrink: 0;
}

.nav {
    display: flex;
    width: 1260px;
    height: 102px;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.alt-menu {
    display: flex;
    width: 355.5px;
    justify-content: flex-end;
    align-items: center;
    background: var(--primary-black);
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 50px;
    flex: 1 0 0;
}

.nav-link {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-background-dark);
    text-decoration: none;
}

/* ========================================
     Form Groups
     ======================================== */

.form-group {
    display: flex;
    width: 683px;
    height: 627px;
    padding: 48px 72px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
}

.form-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    align-self: stretch;
}

.form-link {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
}

/* ========================================
     Utility Classes
     ======================================== */

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

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

.text-secondary {
    color: var(--color-text-secondary);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}
.mt-md {
    margin-top: var(--spacing-md);
}
.mt-lg {
    margin-top: var(--spacing-lg);
}
.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}
.mb-md {
    margin-bottom: var(--spacing-md);
}
.mb-lg {
    margin-bottom: var(--spacing-lg);
}
.mb-xl {
    margin-bottom: var(--spacing-xl);
}
