@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --primary-color: #3b82f6;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
}

/* Background Animation Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Banner Section */
.banner-section {
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 1s ease-out;
}

.banner-content {
    position: relative;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.15) 0%,
            rgba(139, 92, 246, 0.15) 50%,
            rgba(236, 72, 153, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.banner-text {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.banner-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
    text-shadow: 0 0 40px rgba(192, 132, 252, 0.4);
    animation: gradientShift 3s ease infinite;
    background-size: 200% auto;
}

.banner-text .subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.banner-text h2 {
    margin-top: 1.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
}

.banner-text h2 .btn {
    margin-left: 0;
    position: relative;
    overflow: hidden;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.6),
        0 10px 30px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: pulseGlow 2s ease-in-out infinite, floatButton 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.banner-text h2 .btn,
.banner-text h2 .btn * {
    position: relative;
    z-index: 2;
}

.banner-text h2 .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 50px rgba(59, 130, 246, 0.8),
        0 15px 40px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: none;
}

.banner-text h2 .btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Shine effect on button */
.banner-text h2 .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 1;
    pointer-events: none;
}

.banner-text h2 .btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.banner-text h2 .btn:hover i {
    transform: translateX(8px) scale(1.1);
}

/* Animations */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(59, 130, 246, 0.6),
            0 10px 30px rgba(139, 92, 246, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow:
            0 0 50px rgba(59, 130, 246, 0.8),
            0 15px 40px rgba(139, 92, 246, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes floatButton {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes shine {
    0% {
        left: -50%;
        top: -50%;
    }

    100% {
        left: 150%;
        top: 150%;
    }
}

/* ==================== Enhanced CTA Button ==================== */

.cta-button {
    position: relative !important;
    padding: 1rem 2rem !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    overflow: visible !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    width: auto !important;
}

.cta-button .cta-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
    position: relative;
    white-space: nowrap;
}

/* FREE Badge */
.free-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
    animation: freeBadgePulse 2s ease-in-out infinite;
    z-index: 3;
    letter-spacing: 1px;
}

@keyframes freeBadgePulse {

    0%,
    100% {
        transform: scale(1) rotate(-5deg);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
    }

    50% {
        transform: scale(1.15) rotate(-5deg);
        box-shadow: 0 6px 25px rgba(255, 107, 107, 0.9);
    }
}

/* FREE Badge Outside Button */
.free-badge-outside {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.7);
    animation: freeBadgePulse 2s ease-in-out infinite;
    letter-spacing: 1.5px;
    margin-right: 1rem;
    vertical-align: middle;
}

/* Enhanced Shine */
.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: ctaShine 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes ctaShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Hover Effect */
.cta-button:hover {
    transform: translateY(-8px) scale(1.08) !important;
    box-shadow: 0 0 60px rgba(59, 130, 246, 1), 0 20px 50px rgba(139, 92, 246, 0.8) !important;
}

/* Banner Decorative Shapes */
.banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.banner-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.banner-shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.banner-shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    bottom: -100px;
    left: -80px;
    animation-delay: 2s;
}

.banner-shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

/* Animations */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Header (for backward compatibility) */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.3);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Controls */
.controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-out;
    flex-wrap: wrap;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .controls {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(30, 41, 59, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        margin: 0;
        gap: 1rem;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .controls.active {
        right: 0;
    }

    .controls .btn {
        width: 100%;
        justify-content: center;
    }
}



/* Section Styling */
.section-container {
    width: 100%;
    /* Force full width to stack vertically */
    display: block;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

/* Special styling for banner CTA button - don't override default btn-primary */
.banner-text h2 .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% auto;
}

.banner-text h2 .btn-primary:hover {
    background-position: right center;
}

/* Grid Layout (Default) */
/* Responsive Grid Layout (No Horizontal Scroll) */
.card-grid {
    display: grid;
    /* Allow cards to be wider for HTML content like iframes */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding-bottom: 0;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    /* Ensure it doesn't exceed container */
}

/* Hide scrollbar just in case, though not needed for grid */
.card-grid::-webkit-scrollbar {
    display: none;
}

/* Flexible Card Sizing */
.card-grid .card {
    min-width: unset;
    /* Remove fixed width */
    max-width: 100%;
    /* fluid width */
    scroll-snap-align: none;
    flex-shrink: 1;
}

/* Standardize Image Height */
.card-image-container {
    height: 220px;
}

/* List Layout */
.card-grid.layout-list {
    grid-template-columns: 1fr;
}

.card-grid.layout-list .card {
    flex-direction: row;
    height: 250px;
    align-items: center;
}

.card-grid.layout-list .card-image-container {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
}

.card-grid.layout-list .card-content {
    justify-content: center;
}

/* Compact Grid Layout */
.card-grid.layout-compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.card-grid.layout-compact .card-image-container {
    height: 120px;
}

.card-grid.layout-compact .card-title {
    font-size: 1.1rem;
}

.card-grid.layout-compact .card-desc {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

/* Glassmorphic Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 0;
    /* Remove padding to let image fill top */
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.card-image-container {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Fallback for no image (optional) */
.card-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
}

.card-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Allow HTML content to display fully */
    overflow: visible;
    max-height: none;
}

/* Special handling for HTML content in cards */
.card-desc iframe,
.card-desc div,
.card-desc>* {
    max-width: 100%;
}

/* Ensure iframes are responsive */
.card-desc iframe {
    width: 100%;
    height: auto;
    min-height: 400px;
}


.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-like {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 8px;
}

.btn-like:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-like.liked {
    color: #ef4444;
}

.btn-like.liked i {
    animation: heartBeat 0.3s forwards;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.card:hover .card-actions {
    opacity: 1;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: white;
    color: var(--bg-color);
    transform: scale(1.1);
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #1e293b;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: perspective(100px) translateZ(-20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: perspective(100px) translateZ(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Danger button for delete actions */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    background: linear-gradient(135deg, #f87171, #ef4444);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.notification.success::before {
    background: linear-gradient(to bottom, #10b981, #059669);
}

.notification.error::before {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
}

.notification.warning::before {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.notification.info::before {
    background: linear-gradient(to bottom, #3b82f6, #2563eb);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.notification.success .notification-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification.warning .notification-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.notification.info .notification-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    word-wrap: break-word;
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.notification.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Categories List */
.categories-list {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    animation: fadeIn 0.5s ease-out;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.category-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

.category-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    justify-content: center;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .banner-content {
        padding: 2.5rem 1.5rem;
    }

    .banner-text h1 {
        font-size: 2.2rem;
    }

    .banner-text .subtitle {
        font-size: 0.95rem;
    }

    .banner-shape-1 {
        width: 200px;
        height: 200px;
        top: -100px;
        right: -50px;
    }

    .banner-shape-2 {
        width: 180px;
        height: 180px;
        bottom: -80px;
        left: -50px;
    }

    .banner-shape-3 {
        width: 120px;
        height: 120px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .notification-container {
        left: 20px;
        right: 20px;
        max-width: 100%;
    }

    .notification {
        padding: 1rem 1.25rem;
    }
}

/* Confirm Modal Message Styles */
#confirmModalMessage {
    color: var(--text-main);
    line-height: 1.6;
}

#confirmModalMessage strong {
    color: #f59e0b;
    font-weight: 600;
}

/* Responsive Banner Styles */
@media (max-width: 768px) {
    .banner-content {
        padding: 2.5rem 1.5rem;
    }

    .banner-text h1 {
        font-size: 2.2rem;
    }

    .banner-text .subtitle {
        font-size: 0.95rem;
    }

    .banner-shape-1 {
        width: 200px;
        height: 200px;
        top: -100px;
        right: -50px;
    }

    .banner-shape-2 {
        width: 180px;
        height: 180px;
        bottom: -80px;
        left: -50px;
    }

    .banner-shape-3 {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding: 2rem 1rem;
    }

    .banner-text h1 {
        font-size: 1.8rem;
    }

    .banner-text .subtitle {
        font-size: 0.85rem;
    }

    .banner-text h2 {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .banner-text h2 .btn {
        width: 100%;
        max-width: 250px;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}