/* =====================================================================
   XIVIRI CORPORATE INTERFACE ARCHITECTURE - CORE DESIGN SYSTEM
   Theme Identity: Dark / Premium Functional Minimalism
   Primary Brand Token: #E8820C (Primary Brand Orange)
   ===================================================================== */

:root {
    --orange: #E8820C;
    --orange-dark: #C46A08;
    --orange-light: #F5A83A;
    --black: #0D0D0D;
    --dark: #141414;
    --white: #FFFFFF;
    
    /* Functional Semantic Accent Layers */
    --surface-card: #1E1E1E;
    --surface-border: #2D2D2D;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-muted: #666666;
    --error: #FF4D4D;
    --success: #2EE57E;
    
    /* Layout Framework Mechanics */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 6px;
    --transition-speed: 0.2s;
}

/* CSS variables for light-mode toggles */
[data-theme="light"] {
    --black: #F4F5F7;
    --dark: #FFFFFF;
    --surface-card: #EFEFEF;
    --surface-border: #D1D5DB;
    --text-primary: #0D0D0D;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
}

/* Standard Layout Normalization Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--black);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Interactive Element Form Styles */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--orange-dark);
}

/* Reusable UI Components styling */
.xiviri-button {
    background-color: var(--orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.xiviri-button:hover {
    background-color: var(--orange-dark);
    color: var(--white);
}

.xiviri-form-group {
    margin-bottom: 1.25rem;
}

.xiviri-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.xiviri-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--dark);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: border-color var(--transition-speed) ease;
}

.xiviri-input:focus {
    border-color: var(--orange);
}

/* Global Notification Layout elements */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}