/* =========================================================
   Video Platform - Estilos personalizados
   ========================================================= */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Mensajes flash */
.alert {
    border-radius: 0.5rem;
}

/* Pagina de autenticacion */
.auth-page {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.auth-card {
    background: #212529;
    border: none;
    border-radius: 1rem;
}

.auth-card .form-control {
    background: #2b3035;
    border: 1px solid #3f474e;
    color: #fff;
}

.auth-card .form-control:focus {
    background: #2b3035;
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    color: #fff;
}

.auth-card .input-group-text {
    background: #2b3035;
    border: 1px solid #3f474e;
    color: #6c757d;
}

.auth-card .form-label {
    color: #adb5bd !important;
}

/* Tarjetas de video */
.video-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.video-thumb {
    background: #1a1a1a;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #212529, #343a40);
    position: relative;
}

.badge-video-type {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.7rem;
}

.public-badge,
.private-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.65rem;
}

.card-title {
    min-height: 1.5rem;
}

/* Reproductor de video */
.video-player-wrap {
    background: #000;
}

.video-player-wrap video {
    max-height: 70vh;
}

/* Items de permisos */
.user-check-item {
    transition: background 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.user-check-item:hover {
    background: #f8f9fa;
}

.user-check-item .form-check-label {
    cursor: pointer;
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Page headers */
h4 {
    font-weight: 600;
}

.card {
    border-radius: 0.75rem;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}
