/* ============================================
   ESTILOS PERSONALIZADOS - EVALUADOR UFPS
   ============================================ */

:root {
    /* UFPS Brand Colors */
    --primary-color: #AA1916; /* UFPS Red */
    --primary-dark: #8a1210;
    --primary-light: #d62824;
    
    /* Neutral Colors */
    --secondary-color: #4a4a4a;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --light-bg: #f4f6f9;
    --white: #ffffff;
    --dark-bg: #1a1a1a;
    
    /* Status Colors */
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* UI Elements */
    --border-radius: 0.375rem;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.25s ease-in-out;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================
   GENERAL
   ============================================ */

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
    color: white !important;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    box-shadow: var(--box-shadow);
    padding: 0.75rem 0;
    background: var(--white) !important;
    border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(170, 25, 22, 0.05);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
    color: var(--danger-color);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--white);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard Stats Cards */
.card.text-white {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.card.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important; /* Dark text for contrast */
}

.card.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
    color: #212529 !important; /* Dark text for contrast */
}

.card.text-white h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card.text-white .card-footer {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.75rem 1.5rem;
}

.card.text-white a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: #fdfdfd;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(170, 25, 22, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-control, .form-select {
    padding: 0.625rem 1rem;
    border-color: #dee2e6;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(170, 25, 22, 0.1);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

body:has(.login-container) {
    background-color: #f4f6f9;
    background-image: linear-gradient(135deg, #f4f6f9 0%, #e9ecef 100%);
    height: 100vh;
    overflow: hidden;
}

body:has(.login-container) nav,
body:has(.login-container) footer {
    display: none !important;
}

body:has(.login-container) main {
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.login-container {
    height: 100vh; /* Use full height */
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding to ensure fit */
}

.login-card {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    max-height: 90vh; /* Ensure card doesn't exceed viewport */
}

.login-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    width: 45%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://ww2.ufps.edu.co/public/archivos/elementos_corporativos/logo-ufps.png') no-repeat center center;
    background-size: contain;
    opacity: 0.05;
    filter: grayscale(100%) invert(100%);
}

.login-sidebar h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.login-sidebar p {
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.login-form {
    width: 55%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header img {
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Mobile Login */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 400px;
    }
    .login-sidebar {
        width: 100%;
        padding: 2rem;
        text-align: center;
    }
    .login-form {
        width: 100%;
        padding: 2rem;
    }
}

/* ============================================
   ALERTS & BADGES
   ============================================ */

.alert {
    border: none;
    border-left: 4px solid;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}

.alert-success {
    border-color: var(--success-color);
    background-color: #f0f9f4;
    color: #155724;
}

.alert-danger {
    border-color: var(--danger-color);
    background-color: #fdf2f2;
    color: #721c24;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 4px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: white !important;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

