/* ========================================
   SISTEMA DE GESTIÓN DE HORAS
   Corporación Universitaria Autónoma del Cauca
   ======================================== */

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

/* ========================================
   CSS RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   LAYOUT: PAGE WRAPPER
   ======================================== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 40px 50px;
}

/* ========================================
   HEADER (Matches screenshot exactly)
   ======================================== */
.header {
    display: flex;
    align-items: stretch;
    height: 90px;
    overflow: hidden;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 25px;
    min-width: 280px;
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
}

.header-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-avatar svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 500;
}

.header-user-info .role-name {
    font-size: 13px;
    opacity: 0.9;
}

.header-user-info .sub-role {
    font-weight: 700;
    font-size: 14px;
}

.header-title {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 30px;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 60%, #1a237e 100%);
    color: white;
}

.header-title h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    background: linear-gradient(135deg, #0D47A1 0%, #1a1a3e 100%);
}

.header-logo img {
    max-height: 65px;
    filter: brightness(0) invert(1);
}

.header-novedades {
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: linear-gradient(135deg, #0D47A1 0%, #1a1a3e 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.header-novedades:hover {
    opacity: 0.8;
}

/* ========================================
   FOOTER BAR
   ======================================== */
.footer-bar {
    background: linear-gradient(135deg, #0D47A1 0%, #1a237e 100%);
    padding: 20px 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 70px;
}

/* ========================================
   CONTENT CARD (Light gray card matching screenshots)
   ======================================== */
.content-card {
    background-color: #DCE4EF;
    border-radius: 20px;
    padding: 50px 40px;
    margin: 0 auto;
    max-width: 1000px;
    min-height: 350px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #2196F3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-action {
    background-color: #2196F3;
    color: white;
    padding: 10px 24px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-action:hover {
    background-color: #1565C0;
}

.btn-back {
    background-color: #2196F3;
    color: white;
    padding: 12px 40px;
}

.btn-back:hover {
    background-color: #1976D2;
}

.btn-cerrar {
    background-color: #2196F3;
    color: white;
    padding: 12px 30px;
}

.btn-cerrar:hover {
    background-color: #1976D2;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 24px;
    font-size: 14px;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ========================================
   DASHBOARD MODULE GRID
   ======================================== */
.module-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
}

.module-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.module-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon svg {
    width: 70px;
    height: 70px;
    fill: #FFD600;
    stroke: #FFD600;
}

.module-btn {
    background-color: #2196F3;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;

}

.module-item:hover .module-btn {
    background-color: #1565C0;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: #e8edf3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 60px;
}

.login-left h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0D47A1;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.login-image-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.login-image-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.login-right {
    flex: 1;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 60px;
    color: white;
}

.login-right .login-logo {
    margin-bottom: 30px;
}

.login-right .login-logo img {
    max-width: 180px;
    filter: brightness(0) invert(1);
}

.login-right h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 25px;
}

.login-right p {
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-form .form-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
}

.login-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-form .form-input:focus {
    background-color: rgba(255, 255, 255, 0.25);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-row input[type="checkbox"] {
    accent-color: #FFD600;
    width: 18px;
    height: 18px;
}

.btn-login {
    display: block;
    width: 60%;
    margin: 0 auto;
    padding: 14px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.forgot-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.forgot-link:hover {
    color: white;
}

/* ========================================
   FORMS (General form styling)
   ======================================== */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 30px;
}

.form-group label {
    font-size: 18px;
    font-weight: 700;
    min-width: 250px;
    color: #222;
}

.form-input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.form-textarea {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    background: #DCE4EF;
    resize: vertical;
    min-height: 150px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #222;
}

/* ========================================
   TABLE STYLES
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.data-table a {
    color: #2196F3;
    font-weight: 500;
}

.data-table a:hover {
    text-decoration: underline;
}

/* ========================================
   CARGAR ARCHIVOS (File upload section)
   ======================================== */
.archivo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    gap: 20px;
}

.archivo-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.archivo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archivo-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #333;
    stroke-width: 2;
}

.archivo-name {
    font-size: 20px;
    font-weight: 800;
}

.archivo-btn {
    background-color: #2196F3;
    color: white;
    padding: 10px 60px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.proyeccion-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 0 30px;
}

.proyeccion-buttons .btn {
    flex: 1;
    max-width: 300px;
}

/* ========================================
   MESSAGES
   ======================================== */
.messages {
    list-style: none;
    padding: 0 50px;
    margin-top: 10px;
}

.messages li {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.messages .success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.messages .error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.messages .warning {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* ========================================
   NOVEDADES PAGE
   ======================================== */
.novedades-card {
    background-color: #DCE4EF;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.novedades-submit {
    text-align: center;
    margin-top: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .header {
        flex-wrap: wrap;
        height: auto;
    }

    .header-user {
        min-width: 100%;
        padding: 15px 20px;
    }

    .header-title {
        padding: 10px 20px;
    }

    .module-grid {
        flex-direction: column;
        gap: 30px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-group label {
        min-width: auto;
    }

    .page-content {
        padding: 20px;
    }

    .content-card {
        padding: 25px 20px;
    }
}

/* ========================================
   PASSWORD RESET PAGES
   ======================================== */
.reset-status-icon {
    margin-bottom: 20px;
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}