/* * A&G Energy Solutions - Enterprise UI Blueprint
 * Global Consistency: Navy Blue (#1e3a8a) & Teal (#0d9488)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Base Infrastructure */
    --bg-color: #f8fafc;
    --panel-color: #ffffff;
    --text-main: #0f172a;
    
    /* A&G Navy Blue (Primary) */
    --key-blue: #e0e7ff;
    --key-blue-shadow: #1e3a8a;
    --key-blue-text: #1e3a8a;
    
    /* A&G Teal (Secondary / Success) */
    --key-teal: #ccfbf1;
    --key-teal-shadow: #0d9488;
    --key-teal-text: #0f766e;
    
    /* Functional Colors */
    --key-rose: #ffe4e6;
    --key-rose-shadow: #e11d48;
    --key-rose-text: #9f1239;
    
    --key-slate: #f1f5f9;
    --key-slate-shadow: #475569;
    --key-slate-text: #334155;
    
    --key-gold: #fef9c3;
    --key-gold-shadow: #ca8a04;
    --key-gold-text: #854d0e;
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 🟢 PROFESSIONAL PANELS */
.crystal-panel {
    background: var(--panel-color);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.crystal-panel:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* 🟢 3D MECHANICAL KEYS (Universal Button Design) */
.mech-key {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    transition: all 0.1s ease;
    cursor: pointer;
    outline: none;
    user-select: none;
    padding: 12px 24px;
    font-size: 0.75rem;
    top: 0;
    border-bottom-width: 4px;
    width: auto;
}

.mech-key:active {
    top: 3px;
    border-bottom-width: 1px;
    box-shadow: none !important;
}

/* Button Variations */
.key-blue { 
    background: var(--key-blue); 
    color: var(--key-blue-text); 
    border: 1px solid #bfdbfe; 
    border-bottom-color: var(--key-blue-shadow); 
}
.key-teal { 
    background: var(--key-teal); 
    color: var(--key-teal-text); 
    border: 1px solid #99f6e4; 
    border-bottom-color: var(--key-teal-shadow); 
}
.key-rose { 
    background: var(--key-rose); 
    color: var(--key-rose-text); 
    border: 1px solid #fecdd3; 
    border-bottom-color: var(--key-rose-shadow); 
}
.key-slate { 
    background: var(--key-slate); 
    color: var(--key-slate-text); 
    border: 1px solid #e2e8f0; 
    border-bottom-color: var(--key-slate-shadow); 
}

/* 🟢 FORM INPUTS & SEARCH */
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

/* 🟢 DATA TABLES */
.enterprise-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.enterprise-table th {
    background: #f8fafc;
    padding: 16px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.enterprise-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.enterprise-table tr:hover td {
    background-color: #f1f5f9;
}

/* 🟢 ANIMATIONS */
.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🟢 CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 🟢 PRINT OPTIMIZATION */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .crystal-panel { border: none; box-shadow: none; }
}

.hidden { display: none !important; }