/* Estilos personalizados para Lanzaflix */

/* Variables globales */
:root {
    --primary-color: #E50914;
    --primary-hover: #F40612;
    --dark-bg: #141414;
    --darker-bg: #0B0B0B;
    --light-text: #FFFFFF;
    --gray-text: #B3B3B3;
    --gray-bg: #333333;
    --gray-light-bg: #454545;
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --info-color: #3498DB;
}

/* Estilos generales */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

a:hover {
    text-decoration: underline;
}

/* Estilos para login y registro */
.auth-container {
    min-height: 100vh;
    background-image: url('../img/fondo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

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

.auth-header {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.auth-logo {
    height: 2.5rem;
}

.auth-form-container {
    position: relative;
    z-index: 2;
    max-width: 450px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #333;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.auth-input:focus {
    background-color: #454545;
    outline: none;
}

.auth-input.error {
    border: 2px solid var(--danger-color);
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: var(--primary-hover);
}

.auth-link {
    color: var(--gray-text);
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.auth-link a {
    color: var(--light-text);
}

.auth-error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--light-text);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.auth-success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--success-color);
    color: var(--light-text);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Estilos para el dashboard y paneles internos */
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: var(--gray-text);
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    text-decoration: none;
}

.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
}

.sidebar-item i {
    margin-right: 0.75rem;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para estados de peticiones */
.status-pending {
    background-color: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498DB;
    color: #3498DB;
}

.status-processing {
    background-color: rgba(243, 156, 18, 0.2);
    border: 1px solid #F39C12;
    color: #F39C12;
}

.status-added {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ECC71;
    color: #2ECC71;
}

.status-rejected {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid #E74C3C;
    color: #E74C3C;
}

/* Estilos para autocompletado */
.autocomplete-results {
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    transition: background-color 0.3s;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .auth-form-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Estilos para línea de tiempo */
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 2px;
    background-color: var(--gray-bg);
    z-index: 1;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--gray-bg);
    color: var(--light-text);
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
