:root {
    --primary-blue: #1a73e8;
    --secondary-blue: #4285f4;
    --accent-orange: #ff6d00;
    --white: #ffffff;
    --gradient-start: #1a73e8;
    --gradient-end: #4285f4;
}

body {
    background: #f5f5f5;
    min-height: 100vh;
    color: #333333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
}

/* Left Section - Background Image */
.login-left {
    flex: 1;
    background-image: url('https://universityibc.s3.us-east-1.amazonaws.com/BANNER/OCHO.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.login-copyright-left {
    display: none;
}

/* Right Section - Login Form */
.login-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    min-height: 100vh;
}

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

.login-form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: left;
    letter-spacing: 0.5px;
}

.title-blue {
    color: #1a73e8;
}

.title-orange {
    color: #ff6d00;
}

.login-subtitle {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: left;
}

.login-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #333333;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: left;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #ffffff;
    color: #333333;
}

.login-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: #1a73e8;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(90deg, #1a73e8 0%, #ff6d00 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-copyright-right {
    display: none;
}

.login-help-text {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-align: left;
}

.admin-shortcut-message {
    font-size: 0.85rem;
    color: #ff6d00;
    margin-top: 0.35rem;
}

.login-help-link {
    color: #1a73e8;
    text-decoration: underline;
    transition: color 0.2s;
}

.login-help-link:hover {
    color: #ff6d00;
}

/* Responsive Login */
@media (max-width: 992px) {
    .login-container {
        overflow-y: auto;
    }
    
    .login-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .login-left {
        min-height: 50vh;
        padding: 2rem 1rem;
        justify-content: flex-end;
    }
    
    .login-right {
        min-height: 50vh;
        padding: 2rem 1rem;
    }
    
}

@media (max-width: 768px) {
    .login-left {
        min-height: 40vh;
    }
    
    .login-right {
        min-height: 60vh;
    }
    
    .login-form-card {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 0;
    }
    
    .login-wrapper {
        box-shadow: none;
    }
    
    .login-left {
        min-height: 35vh;
        padding: 1.5rem 1rem;
    }
    
    .login-right {
        min-height: 65vh;
        padding: 1.5rem 1rem;
    }
    
    .login-form-card {
        padding: 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .login-help-text {
        font-size: 0.8rem;
        margin-top: 1rem;
    }
    
}

@media (max-width: 400px) {
    .login-title {
        font-size: 1.35rem;
    }
    
    .login-form-card {
        padding: 1.25rem;
    }
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.8rem;
}

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

.btn-accent {
    background-color: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    color: #fff !important;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background 0.2s, border 0.2s;
}

.btn-accent:hover, .btn-accent:focus {
    background-color: #ff8c1a !important;
    border-color: #ff8c1a !important;
    color: #fff !important;
}

/* Company Cards */
.company-card[data-company="ibc"] {
    background: linear-gradient(135deg, #1a73e8 0%, #81d4fa 100%);
}

.company-card[data-company="cepal"] {
    background: linear-gradient(135deg, #7b1fa2 0%, #2196f3 100%);
}

.company-card[data-company="otras"] {
    background: linear-gradient(135deg, #ff6d00 0%, #ff8a65 100%);
}

.company-card[data-company="inteligenio"] {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card[data-company="inteligenio"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.company-card[data-company="inteligenio"] .company-logo {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.company-card[data-company="inteligenio"]:hover .company-logo {
    transform: scale(1.05);
}

.company-card[data-company="inteligenio"] h3 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.company-card {
    color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin: 0.5rem;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.company-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.company-logo {
    max-width: 150px;
    height: auto;
    padding: 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.company-card h3 {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Video Cards */
.video-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-card .card-body {
    padding: 1rem;
}

.video-card .card-title {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-card .card-text {
    color: #333333;
    font-size: 0.9rem;
}

.text-justify {
    text-align: justify;
}

/* Admin Dashboard */
.admin-card {
    background: rgba(24, 28, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e5e5e5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.admin-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1a73e8, #ff6d00);
}

.admin-table-wrapper {
    max-height: 420px;
}

.admin-table-wrapper table {
    color: #f8f9fa;
}

.admin-table-wrapper thead th {
    position: sticky;
    top: 0;
    background: rgba(26, 115, 232, 0.95);
    z-index: 2;
    border-color: rgba(255, 255, 255, 0.12);
}

.admin-table-wrapper tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.permissions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-permission-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
}

.company-permission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.company-permission-details {
    margin-top: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.company-permission-details.active {
    display: flex;
}

.permission-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.permission-checkboxes .form-check {
    min-width: 160px;
}

.permission-select {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.permission-select option {
    color: #000;
}

.table-dark.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

.table-dark.table-striped>tbody>tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.98);
}

.btn-close {
    background-color: var(--white);
    opacity: 0.8;
    z-index: 1050;
}

.btn-close:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .login-card {
        margin: 0.5rem;
    }

    .company-card {
        margin-bottom: 1rem;
    }

    .company-logo {
        max-width: 120px;
    }

    .video-thumbnail {
        height: 180px;
    }

    .video-title {
        font-size: 1rem;
    }

    .video-description {
        font-size: 0.8rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0.25rem;
    }

    .login-card {
        margin: 0.25rem;
    }

    .company-logo {
        max-width: 100px;
    }

    .video-thumbnail {
        height: 160px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .company-card {
        transition: none;
    }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0d47a1, #1565c0);
    }

    .card {
        background-color: rgba(45, 45, 45, 0.95);
    }

    .video-description {
        color: #ccc;
    }
}

/* Oculta el botón de descarga en los controles nativos de video */
video::-internal-media-controls-download-button {
    display: none !important;
}
video::-webkit-media-controls-enclosure {
    overflow: hidden !important;
}
video::-webkit-media-controls-panel {
    display: flex !important;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #000 !important;
}

.custom-modal-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
}
.custom-modal-content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #181c24;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 2100;
    padding: 1.5rem 1rem 1rem 1rem;
    min-width: 340px;
    max-width: 90vw;
    width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2200;
}
#customPlayer {
    width: 100%;
    max-height: 60vh;
    background: #000;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.custom-controls {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #23272f;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    margin-top: 0.2rem;
}
.custom-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0.3rem;
}
.custom-controls input[type=range] {
    flex: 1;
    accent-color: #1a73e8;
    height: 3px;
}
#currentTime, #duration {
    color: #fff;
    font-size: 0.95rem;
    min-width: 45px;
    text-align: center;
}
@media (max-width: 600px) {
    .custom-modal-content {
        width: 98vw;
        min-width: unset;
        padding: 0.5rem 0.2rem 0.7rem 0.2rem;
    }
    #customPlayer {
        max-height: 40vh;
    }
    .custom-controls {
        flex-direction: column;
        gap: 0.3rem;
    }
}

.audio-card {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    transition: transform 0.3s ease;
}

.audio-card:hover {
    transform: translateY(-5px);
}

.audio-card .card-body {
    padding: 1.5rem;
}

.audio-card audio {
    margin-top: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.audio-card audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.1);
}

.audio-card audio::-webkit-media-controls-current-time-display,
.audio-card audio::-webkit-media-controls-time-remaining-display {
    color: white;
}

.audio-card audio::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    margin-left: 10px;
    margin-right: 10px;
}

.audio-card audio::-webkit-media-controls-volume-slider {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding-left: 8px;
    padding-right: 8px;
}

/* Folder Styles */
.folder-card {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.8) 0%, rgba(66, 133, 244, 0.8) 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.folder-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.95) 0%, rgba(66, 133, 244, 0.95) 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.folder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.folder-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ajustes para el botón de volver */
.btn-secondary {
    background: rgba(108, 117, 125, 0.8);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 1);
    color: #fff;
}

/* Estilos para la sección de videoteca */
#videotecaSection {
    background: #f5f5f5;
}

#videotecaSection h2 {
    color: #666666;
    font-weight: 600;
}

#videotecaSection .text-white {
    color: #666666 !important;
}

/* Input de búsqueda */
#videoSearch {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333333;
    border-radius: 8px;
}

#videoSearch:focus {
    background: #ffffff;
    border-color: #1a73e8;
    color: #333333;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

#videoSearch::placeholder {
    color: #999999;
}

#companiesSection {
    background: #f5f5f5;
}

#companiesSection h2 {
    color: #666666;
    font-weight: 600;
}

/* Botón cerrar sesión - rojo */
.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: #fff !important;
}

/* Ajustes para las tarjetas de video y audio dentro de las carpetas */
.folder-content .video-card,
.folder-content .audio-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.folder-content .video-card:hover,
.folder-content .audio-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Botón estandarizado "Volver a la carpeta anterior" */
.standard-back-button {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.standard-back-button:hover {
    background-color: #1557b0 !important;
    border-color: #1557b0 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3) !important;
}

.standard-back-button:active {
    background-color: #0d47a1 !important;
    border-color: #0d47a1 !important;
    transform: translateY(0);
}

/* Estandarizar botones del modal de contraseña */
#accessCodeModal .modal-footer .btn {
    min-width: 120px;
    padding: 10px 20px !important;
    font-weight: 500;
}

/* Estilos para el visor de PDF de Malla Curricular */
.pdf-viewer-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    min-height: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .pdf-viewer-container {
        padding: 10px;
    }
    
    .pdf-viewer-container iframe {
        height: 600px;
    }
} 