/* qms_system main stylesheet */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #004080;
    /* Deep Banking Blue */
    --secondary-color: #00b3b3;
    /* Tech Cyan */
    --accent-color: #ffcc00;
    /* Gold/Warning */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-bg: #1a1a2e;
    /* Deep Navy Background */
    --light-bg: #f4f6f9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --text-main: #333;
    --text-light: #f8f9fa;
    --font-main: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.dark-mode .glass-panel {
    background: rgba(26, 26, 46, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.text-tech {
    font-family: 'Courier New', monospace;
    /* Tech feel for tokens */
    letter-spacing: 2px;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--primary-color);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.main-content {
    flex: 1;
    padding: 30px;
}

/* Auth Page Specifics - Split Screen */
.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.login-brand-side {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--primary-color), #002244);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.brand-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.6;
}

.login-form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 40px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: 0;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 179, 179, 0.1);
}

/* Big Token Display */
.token-display-card {
    background: #000;
    color: #0f0;
    /* Retro terminal green or change to nice cyan */
    color: var(--secondary-color);
    font-size: 4rem;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}