
:root {
    --true-black: #000000;
    --jet-black: #0a0a0a;
    --licorice: #1a1110;
    --charcoal: #36454f;
    --matte-black: #28282b;
    --onyx: #353935;
    --obsidian: #0b1215;
    --sable-black: #060606;
    --iron-black: #0e0e10;
    --rich-black: #010203;
    --power-black: #0e0e0e;
    --warm-black: #ffffff;
    --carbon-black: #1a1a1a;
    --deep-black: #050203;
    --shadow-black: #0a0a0a;
    --raven: #6b7b8c;
    --smoke-black: #100c08;
    --dark-slate: #2f4f4f;
    --gunmetal: #2a3439;
    --ashen: #b2beb5;
    --black-olive: #3b3c36;
    --soft-black: #0a0a0a;
    --coal: #0c0c0c;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--midnight-black) 0%, var(--power-black) 100%);
}

/* Template specific styles */
.template-card {
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
}

.template-preview {
    aspect-ratio: 9/16;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.template-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(124, 58, 237, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-preview:hover .play-button {
    opacity: 1;
}

.filter-chip {
    transition: all 0.2s ease;
}

.filter-chip.active {
    background-color: #7c3aed;
    color: white;
}

.filter-chip:hover:not(.active) {
    background-color: #374151;
}

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup styles */
.template-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.template-popup.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    width: 90%;
    max-width: 1000px;
    background-color: #111827;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0,0,0,0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Navbar styles (same as main page) */
.navbar {
    background-color: var(--true-black);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0,0,0,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 250px; /* default width */
    position: fixed;
    top: 0;
    left: -250px; /* hidden by default */
    background-color: #000;
    overflow-x: hidden;
    transition: 0.3s;
    /* padding-top: 60px; */
    padding: 100px 10px 10px 10px;
    z-index: 49; /* Ensure sidebar is above other content */
}

.sidebar a {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #f1f1f1;
    display: block;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #575757;
}

/* Open state */
.sidebar.active {
    left: 0;
}

/* Toggle button */
.open-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
    background: transparent;
    color: white;
    border: none;
    padding: 10px 15px;
    /* position: fixed; */
    top: 20px;
    left: 20px;
    z-index: 49;
}


/* 🔹 Mobile devices (up to 600px) */
@media (max-width: 600px) {
    /* Sidebar hidden by default, open button visible */
    .open-btn {
display: flex;
    }
}

/* 🔹 Tablets (601px – 1024px) */
@media (min-width: 638px) and (max-width: 738px) {
    .open-btn {
display: flex;
    }
}

/* 🔹 Large desktops (1025px and up) */
@media (min-width: 1025px) {
    .open-btn {
display: none;
    }
}