body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url(https://www.teahub.io/photos/full/102-1021869_cine-wallpaper.jpg);
    background-size: cover;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* LOGIN STYLES */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    color: #667eea;
    margin-bottom: 30px;
}

.login-card .form-control,
.login-card .form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
}

.login-card .form-control:focus,
.login-card .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* TABS DE LOGIN/REGISTRO */
.login-card .nav-tabs {
    border-bottom: 2px solid #ddd;
}

.login-card .nav-tabs .nav-link {
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.login-card .nav-tabs .nav-link:hover {
    color: #667eea;
    border-bottom-color: #667eea;
}

.login-card .nav-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
    border-bottom-color: #667eea;
}

.login-card .tab-pane {
    animation: fadeIn 0.3s ease;
}

#mainContent {
    background: #f8f9fa;
    padding-bottom: 40px;
}

/* NAVBAR */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffc107 !important;
}

/* BUSCADOR Y FILTRO */
.form-control,
.form-select {
    border-radius: 5px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* SLIDER DE PELÍCULAS */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.carousel-movies {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.carousel-movies::-webkit-scrollbar {
    height: 8px;
}

.carousel-movies::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.carousel-movies::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.carousel-movies::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.slider-movie-card {
    min-width: 180px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.slider-movie-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.slider-movie-info {
    padding: 10px;
}

.slider-movie-info h6 {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slider-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* TARJETAS DE PELÍCULAS */
.movie-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.movie-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.movie-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.movie-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    min-height: 2.6em;
}

.movie-genre {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.movie-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.movie-rating {
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 10px;
}

.movie-description {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-sm {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 5px;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
}

.btn-info:hover {
    background: #138496;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #333;
    border: none;
}

.btn-warning:hover {
    background: #e0a800;
    color: #333;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
}

/* MODALES */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-title {
    font-weight: bold;
}

.form-label {
    font-weight: 500;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .movie-card {
        margin-bottom: 15px;
    }

    .carousel-movies {
        gap: 15px;
    }

    .slider-movie-card {
        min-width: 150px;
    }

    .slider-movie-card img {
        height: 200px;
    }
}

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

    #btnAgregar {
        width: 40px !important;
        padding: 8px !important;
    }

    #btnAgregar i:last-child {
        display: none;
    }

    .slider-container {
        gap: 10px;
    }

    .carousel-movies {
        gap: 10px;
    }

    .slider-movie-card {
        min-width: 120px;
    }

    .slider-movie-card img {
        height: 160px;
    }
}

/* ANIMACIONES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeIn 0.3s ease;
}
