/* 
   New Premium Styling & Overrides 
   Note: Tailwind handles the bulk of styling via CDN.
   This file ensures legacy selectors degrade gracefully and introduces specific component mechanics.
*/

:root {
  --bg-color: #0a0e14;
  --panel-bg: rgba(22, 27, 34, 0.4);
  --text-primary: #f1f3fc;
  --text-secondary: #a8abb3;
  --accent-color: #72b1ff;
  --accent-glow: rgba(114, 177, 255, 0.3);
  --danger-color: #ff716c;
  --success-color: #2ea043;
  --border-color: rgba(68, 72, 79, 0.2);
  --font-family: 'Inter', sans-serif;
}

/* Base Body defaults - mostly handled by Tailwind classes on body, but as safety guard */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
}

/* Custom Scrollbar for sleek aesthetic */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(114, 177, 255, 0.15);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(114, 177, 255, 0.3);
}

/* Material Symbols strict settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Legacy & Component Mappings to New Style Elements */
.glass-panel {
    background: linear-gradient(180deg, rgba(38, 44, 54, 0.4) 0%, rgba(10, 14, 20, 0.6) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(114, 177, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(114, 177, 255, 0.3);
    box-shadow: 0 8px 32px var(--accent-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, #72b1ff 0%, #58a6ff 100%);
    color: #000002;
    box-shadow: 0 0 15px rgba(114, 177, 255, 0.2);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(114, 177, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Forms Mapping */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: #1b2028 !important; /* surface-container-high */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem;
    color: #ffffff !important;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    color-scheme: dark;
}

.form-control:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 1px var(--accent-color) !important;
}

/* Alerts Mapping */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(114, 177, 255, 0.1);
    border: 1px solid rgba(114, 177, 255, 0.2);
    color: #72b1ff;
    font-weight: 500;
    font-size: 0.9rem;
}
.alert-danger { 
    background: rgba(255, 113, 108, 0.1); 
    border-color: rgba(255, 113, 108, 0.2); 
    color: #ff716c;
}
.alert-success { 
    background: rgba(46, 160, 67, 0.1); 
    border-color: rgba(46, 160, 67, 0.2); 
    color: #2ea043;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover {
    background-color: rgba(255,255,255,0.02);
}
