/* Preloader with faster transition */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease; /* Reduced from 0.5s to 0.3s */
}

[data-theme="dark"] #preloader {
    background-color: rgba(18, 18, 18, 0.98);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(74, 107, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Development Notice */
.dev-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffd166;
    color: #333;
    z-index: 1001; /* Increased z-index to be above navbar */
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dev-notice.hidden {
    transform: translateY(-100%);
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.notice-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    color: #333;
}

.notice-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.notice-close {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    margin-left: 15px;
    transition: color 0.2s ease;
}

.notice-close:hover {
    color: #e63946;
}

/* Special Offers Banner */
.offers-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 990;
    overflow: hidden;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offers-banner.visible {
    transform: translateY(0);
}

.offers-content {
    padding: 20px;
    color: white;
    position: relative;
}

.offers-text h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.offers-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.promo-code {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
}

.offers-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.btn-share, .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.btn-share {
    margin-right: 10px;
}

.btn-share:hover, .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .offers-banner {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .dev-notice {
    background-color: #2d3748;
    color: #f7fafc;
}

[data-theme="dark"] .notice-icon,
[data-theme="dark"] .notice-close {
    color: #f7fafc;
}

[data-theme="dark"] .notice-close:hover {
    color: #fc8181;
}

