:root {
    --primary-color: #64b5f6;
    --secondary-color: #81c784;
    --accent-color: #7986cb;
    --success-color: #66bb6a;
    --warning-color: #ffb74d;
    --danger-color: #e57373;
    --text-light: #ffffff;
    --text-dark: #37474f;
    --bg-light: #f8f9fa;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    margin-bottom: 40px;
    margin-top: 60px;
    min-height: 100vh;
}

/* Fixed Header */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(100, 181, 246, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    height: 60px;
}

.navbar-brand {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Main Content Area */
.portal-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: left;
}

.portal-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.portal-header p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.result-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Table Styles */
.table thead th {
    background: #f8f9fa;
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Form Controls */
.form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(100, 181, 246, 0.15);
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-secondary {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: #ffffff;
    color: var(--text-dark);
    height: 40px;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.9rem;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin: 0;
}

.version-info {
    margin: 0;
    opacity: 0.7;
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.alert-info {
    background: rgba(100, 181, 246, 0.1);
    border-color: rgba(100, 181, 246, 0.2);
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
        margin: 0;
        padding: 0;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: #ffffff;
    }
    
    .result-card,
    .result-card * {
        visibility: visible;
    }
    
    .result-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    .btn,
    .navbar,
    .footer,
    .portal-header {
        display: none !important;
    }
    
    .table {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .table th {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
    
    .badge {
        border: 1px solid #dee2e6 !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portal-header {
        padding: 1.5rem 0;
    }
    
    .portal-header h1 {
        font-size: 1.8rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
}