/* Additional custom styling beyond Bootstrap */
:root {
    --accent-gradient: linear-gradient(90deg, #4d7cfe 0%, #8c5eff 100%);
    --accent-gradient-start: #4d7cfe;
    --accent-gradient-end: #8c5eff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Add smooth transitions */
.htmx-settling {
    opacity: 0;
}

.htmx-request {
    opacity: 0.8;
    transition: opacity 300ms ease-in;
}

/* Custom card styling */
.card {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Script container styling */
#script-container {
    background-color: white;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

/* Video container styling */
#video-container {
    transition: all 0.3s ease;
}

/* Button styling */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form controls */
.form-control {
    border-radius: 0.5rem;
    padding: 0.7rem 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Loading indicators */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Spinner inside button styling */
.btn .spinner-border {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 8px;
    vertical-align: middle;
    display: none;
}

.htmx-request .btn .spinner-border {
    display: inline-block;
}

/* Enhanced Glassmorphism effect for dropdown items */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    width: 200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    z-index: 1000;
    padding: 0.5rem 0;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove padding from dropdown items */
.dropdown-item {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

/* Remove hover background from default item */
.dropdown-item:hover, 
.dropdown-item:focus, 
.dropdown-item:active {
    background-color: transparent;
    box-shadow: none;
}

/* Glass item styling */
.glass-item {
    display: block;
    text-align: center;
    padding: 12px 16px;
    margin: 0;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

/* Glass item hover effect */
.glass-item:hover {
    background-color: rgba(71, 128, 245, 0.1);
    color: var(--accent-gradient-start);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
}

/* Account button styling */
.account-button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 12px;
}

.account-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}
