/* premium.css - ERMS Consolidated Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    /* Neutrals */
    --secondary: #64748b;
    --bg: #f8fafc;
    --text-main: #1e293b;
    --border-color: #e2e8f0;
    
    /* Layout Constants */
    --nav-height: 72px;
    
    /* Effects */
    --card-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --card-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body { 
    background-color: var(--bg); 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--nav-height);
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

main, .page-content { animation: fadeIn 0.4s ease-out forwards; }

/* Global Layout Components */
.page-header { 
    background: white; 
    border-bottom: 1px solid var(--border-color); 
    padding: 2.5rem 0; 
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
}

/* UI Components */
.info-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    transition: var(--transition-standard);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 100px;
}

.info-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary);
}

.card-title { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 0.5rem; 
}

.card-desc { 
    font-size: 0.85rem; 
    color: var(--secondary); 
    line-height: 1.5;
    margin: 0;
}

/* Buttons */
.btn-premium {
    border-radius: 0.875rem; 
    padding: 0.75rem 1.5rem; 
    font-weight: 700; 
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem;
    border: none;
    text-decoration: none;
}

.btn-premium-primary {
    background-color: var(--primary);
    color: white !important;
}

.btn-premium-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Badges */
.badge-status {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* Data Tables */
.table-responsive {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
}

.premium-table {
    margin-bottom: 0;
}

.premium-table thead {
    background: var(--text-main);
}

.premium-table thead th {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
    text-align: center;
}

.premium-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.premium-table tbody tr:last-child td {
    border-bottom: none;
}

/* Utility Classes */
.text-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--secondary);
}

.text-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Navigation Styles */
.navbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0 2rem;
    height: var(--nav-height);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.nav-logo img { height: 42px; width: auto; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.nav-links li a { 
    text-decoration: none; 
    color: var(--secondary); 
    font-weight: 600; 
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    transition: var(--transition-standard); 
}

.nav-links li a:hover, .nav-links li a.active-link { 
    color: var(--primary); 
    background-color: #f1f5f9;
}

.nav-user-info { display: flex; align-items: center; gap: 1.25rem; }
.nav-user-name { font-weight: 700; color: var(--text-main); font-size: 0.9rem; }

.btn-logout {
    color: var(--danger);
    border: 1.5px solid var(--danger);
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.nav-toggle { 
    display: none; 
    background: #f1f5f9; 
    border: none; 
    border-radius: 0.75rem; 
    padding: 0.5rem; 
    cursor: pointer; 
    color: var(--text-main); 
}

@media (max-width: 992px) {
    .navbar-custom { padding: 0 1.25rem; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        transform: translateY(-110%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        z-index: 1040;
        gap: 0.5rem;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links li a { width: 100%; display: block; padding: 0.8rem 1.25rem; }
    .nav-toggle { display: block; }
    .nav-user-info { display: none; }
}
