/* Modern Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@400;600&display=swap');

/* Base Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    color: #fff;
    font-family: 'Montserrat', sans-serif !important;

}

/* Color Variables */
:root {
    --bs-warning: #FFD700;
    --bs-warning-rgb: 255, 215, 0;
}

/* Focus Styles */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #ffc107;
}

.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
    border-color: #ffc107;
    outline: none;
}

/* Dropdown Menu */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:hover {
    background-color: #FFD700 !important;
    color: #000 !important;
}

/* Search Input */
.search-input {
    &::placeholder

{
    color: #fff !important;
    opacity: 0.9;
}

&:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background-color: #000;
    color: #fff;
    &::placeholder

{
    opacity: 0.5;
}

}
}

/* Buttons */
.btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

.btn-outline-warning {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    border-width: 2px;
    &:hover, &:focus

{
    background-color: #FFD700 !important;
    color: #000 !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

&::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

&:hover::before, &:focus::before {
    transform: scaleX(1);
    transform-origin: left;
}

&:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

}

/* Pagination */
.page-link {
    transition: all 0.3s ease;
    &:hover

{
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
}

}

.page-item.active .page-link {
    background-color: #FFD700 !important;
    border-color: #FFD700 !important;
    color: #000 !important;
    font-weight: bold;
}

.border-warning {
    border-color: #FFD700 !important;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(255, 193, 7, 0.2);
    &:hover

{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

}

.card-img-top {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    img

{
    transition: transform 0.3s ease;
}

}

.card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Text Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cart Badge */
.cart-button .badge {
    position: relative;
    top: -2px;
}

/* Quantity Controls */
.quantity-controls {
    .input-group

{
    width: 100%;
}

.form-control {
    max-width: 40px;
}

}

/* Hero Section */
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
    animation: title-glow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    min-width: 200px;
}

.search-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    &:hover
 
{
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.6);
    color: #000;
}

}
.browse-btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffc107;
    border: 2px solid #ffc107;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    &:hover

{
    background: linear-gradient(135deg, #ffc107 0%, #ffed4e 100%);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4);
}

}

.scroll-down-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    &:hover

{
    border-color: #ffc107;
    color: #ffc107;
    transform: scale(1.1);
}

}

/* Search Modal */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: start;
    padding-top: 60px;
}

.modal-content-box {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    width: 60%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

#searchInputModal {
    background-color: #2d2d2d;
    color: #fff;
    border: 1px solid #6c757d;
    padding: 10px 15px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 1rem;
    &:focus

{
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

}

.search-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
}

.search-result-item {
    transition: all 0.1s ease;
    border-radius: 6px;
    &:hover

{
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 3px solid #d4af37;
}

}

/* Movie Sections */
.movie-section-container {
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    &:hover

{
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
}

}

.section-header h2 {
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.section-accent {
    transition: width 0.3s ease;
}

.movie-section-container:hover .section-accent {
    width: 100px;
}

.movie-item-wrapper {
    transition: transform 0.3s ease;
    &:hover

{
    transform: translateY(-5px);
}

}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes title-glow {
    0% {
        text-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
    }

    100% {
        text-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    }
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


/* Notification Styles */
.notification, .cart-notification {
    animation: fadeIn 0.3s ease-out;
}

/* Background Image with Blur */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/bg.png') no-repeat center center fixed;
    background-size: cover;
    filter: blur(7px);
    z-index: -2;
}

.btn-admin-card {
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

    .btn-admin-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(255, 193, 7, 0.1);
        border-color: rgba(255, 193, 7, 0.5);
        background-color: #1a1a1a !important;
    }

    .btn-admin-card h3 {
        transition: color 0.3s ease;
    }

    .btn-admin-card:hover h3 {
        color: #ffc107;
    }
.table-dark {
    --bs-table-bg: #1a1a1a;
    --bs-table-hover-bg: rgba(255, 193, 7, 0.1);
}

.table th {
    border-bottom: 2px solid #ffc107;
    white-space: nowrap;
}

.badge {
    font-weight: 500;
    margin-right: 2px;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

a {
    text-decoration: none;  
    outline: none; 
}

   
    a:focus {
        outline: 2px solid #ffc107; 
        border-radius: 2px;
    }

    a:active {
        outline: none;
    }