/* ========================================
   Studio Satyan - Main Stylesheet
   Matches Figma Make Design
   ======================================== */

/* TAYBirdie Font */
@font-face {
    font-family: 'TAY Birdie';
    src: url('Fonts/TAYBirdie.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-bg: #E1DFD9;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    --color-green-50: #f0fdf4;
    --color-green-500: #22c55e;
    --color-green-600: #16a34a;
    --color-red-500: #ef4444;
    --color-teal: rgba(0, 158, 163, 0.3);
    --font-family: 'TAY Birdie', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.15s ease;
    --radius: 0.625rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-neutral-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
}

p {
    font-size: 1rem;
    font-weight: 300;
}

.hidden {
    display: none !important;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-neutral-200);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 2rem;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-neutral-500);
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-neutral-900);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 51;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-neutral-900);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Home Page - Collage
   ======================================== */
.home-page {
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.collage-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #E1DFD9;
    overflow: hidden;
}

.collage-container {
    position: absolute;
    /* Extend beyond container to fill when rotated */
    inset: -50%;
    width: 200%;
    height: 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Inner content area that holds the images */
.collage-inner {
    position: relative;
    width: 50%;
    height: 50%;
}

/* Gentle floating drift animation */
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(4px, -3px) rotate(0.15deg); }
    50% { transform: translate(-2px, 3px) rotate(-0.1deg); }
    75% { transform: translate(-4px, -2px) rotate(0.1deg); }
}

.collage-item {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    transform-origin: center center;
    /* CSS drift animation - no JS needed */
    animation: drift 8s ease-in-out infinite;
    animation-delay: var(--drift-delay, 0s);
    /* Slow, dreamy transitions for position changes */
    transition: width 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                height 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                left 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                top 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                opacity 1.8s ease;
    /* Subtle drop shadow for depth and separation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25),
                0 2px 4px rgba(0, 0, 0, 0.15);
}

.collage-item.paused {
    animation-play-state: paused;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.collage-item img.loaded {
    opacity: 1;
}

/* Hero image (expanded on load) shows immediately - no shimmer */
.collage-item.expanded img {
    opacity: 1;
}

.collage-item.expanded::before {
    display: none;
}

/* Shimmer loading placeholder for collage images only */
.collage-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(200, 198, 193, 0.6) 0%,
        rgba(220, 218, 213, 0.8) 50%,
        rgba(200, 198, 193, 0.6) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 0;
}

.collage-item.loaded::before {
    display: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* No z-index change on hover - larger images stay back, smaller stay front */

/* Dimming overlay - 10% black texture over collage and expanded images, but under logo */
.dimming-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 99;
    pointer-events: none;
}

.collage-item.expanded {
    z-index: 50 !important;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Stop drift animation when expanded */
    animation: none;
    transform: none;
    /* Unified expand animation - all properties animate together */
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                height 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                left 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                top 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-radius 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                opacity 0.6s ease,
                box-shadow 0.6s ease;
}

/* Logo Overlay */
.logo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    padding-bottom: 4rem;
}

.logo-overlay img {
    width: 75%;
    max-width: 50rem;
    filter: brightness(0) invert(1);
}

.logo-overlay .logo-badge {
    margin-top: 3rem;
}

/* Drawing Canvas */
#drawingCanvas {
    position: absolute;
    inset: 0;
    z-index: 101;
    pointer-events: none;
}

/* Cycle Timer - bottom left, vertical */
.cycle-timer {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 102;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cycle-timer.visible {
    opacity: 1;
}

.timer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transition: opacity 0.15s ease, transform 0.3s ease;
}

.timer-dot.hidden {
    opacity: 0;
    transform: scale(0);
}

.timer-dot.cascade {
    animation: cascadeIn 0.2s ease forwards;
}

@keyframes cascadeIn {
    0% { opacity: 0; transform: scale(0) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.cycle-timer.paused .timer-dot {
    opacity: 0.3;
}

/* ========================================
   Drawing Controls - V2 Figma Design
   ======================================== */
.drawing-controls {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 36px;
    z-index: 102;
}

/* V2 Tool Button */
.v2-tool-btn {
    width: 35px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.v2-tool-btn:hover {
    transform: scale(1.05);
}

.v2-tool-btn:active {
    transform: scale(0.95);
}

.v2-tool-icon {
    display: block;
    width: 100%;
    height: 100%;
}

/* V2 Toolbar - horizontal layout with gap */
.v2-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 17px;
    height: 36px;
}

.v2-toolbar.hidden {
    display: flex;
    pointer-events: none;
}

.v2-toolbar.hidden .v2-tool-btn {
    opacity: 0;
    transform: translateX(15px);
    transition-delay: 0s;
}

/* Cascade animation for toolbar buttons (right to left) */
.v2-toolbar .v2-tool-btn {
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.drawing-controls.active .v2-toolbar .v2-tool-btn {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger from right to left: close(5) -> color(4) -> size(3) -> eraser(2) -> share(1) */
.drawing-controls.active .v2-toolbar .v2-tool-btn:nth-child(5) {
    transition-delay: 0s;
}

.drawing-controls.active .v2-toolbar .v2-tool-btn:nth-child(4) {
    transition-delay: 0.05s;
}

.drawing-controls.active .v2-toolbar .v2-tool-btn:nth-child(3) {
    transition-delay: 0.1s;
}

.drawing-controls.active .v2-toolbar .v2-tool-btn:nth-child(2) {
    transition-delay: 0.15s;
}

.drawing-controls.active .v2-toolbar .v2-tool-btn:nth-child(1) {
    transition-delay: 0.2s;
}

/* When toolbar is visible, hide the pen button */
.drawing-controls.active .pen-btn {
    display: none;
}

/* Eraser active state */
.v2-tool-btn.eraser-btn.active .eraser-bg {
    fill: #EF4136;
}

/* Size button active state */
.v2-tool-btn.size-btn.active .size-btn-bg {
    fill: #333;
}

.v2-tool-btn.size-btn.active #squigglePath {
    fill: white;
    stroke: white;
}

/* Color button - show color instead of wheel when selected */
.v2-tool-btn.color-btn.selected .color-wheel-segments {
    display: none;
}

.v2-tool-btn.color-btn.selected .color-btn-bg {
    stroke: black;
    stroke-width: 2;
}

/* ========================================
   V2 Modals
   ======================================== */
.v2-modal {
    position: fixed;
    right: 3rem;
    bottom: 6rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    padding: 0;
    background: var(--color-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.modal-close-btn:hover {
    opacity: 1;
}

.modal-close-btn svg {
    width: 10px;
    height: 10px;
    stroke: var(--color-white);
    transition: stroke 0.2s ease;
}

.modal-close-btn:hover svg {
    stroke: var(--color-red-500);
}

.v2-modal.hidden {
    display: none;
}

/* Line Weight Modal */
.line-weight-modal {
    padding: 6px 18px 6px 6px;
}

.line-weight-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.squiggle-preview {
    width: 28px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    overflow: visible;
}

.squiggle-preview svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.line-weight-slider-container {
    width: 200px;
    height: 16px;
    position: relative;
    cursor: pointer;
}

.line-weight-slider-track {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: none;
}

.line-weight-track-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.line-weight-thumb {
    position: absolute;
    top: 0;
    width: 2px;
    height: 16px;
    background: white;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 0 0 3px black;
    transform: translateX(-1px);
}

/* Color Selector Modal */
.color-selector-modal {
    width: 260px;
    height: 84px;
    padding: 0;
    display: flex;
    align-items: center;
}

.eyedropper-icon {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.eyedropper-icon:hover {
    opacity: 0.7;
}

.eyedropper-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.color-sliders {
    position: absolute;
    left: 41px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 200px;
}

.color-slider-row {
    height: 12px;
    position: relative;
    border-radius: 24px;
    cursor: pointer;
}

.color-slider-track {
    position: absolute;
    inset: 0;
    border-radius: 24px;
}

/* Hue track - rainbow gradient */
.hue-track {
    background: linear-gradient(to right,
        hsl(0, 100%, 50%),
        hsl(60, 100%, 50%),
        hsl(120, 100%, 50%),
        hsl(180, 100%, 50%),
        hsl(240, 100%, 50%),
        hsl(300, 100%, 50%),
        hsl(360, 100%, 50%)
    );
    border: 1px solid white;
}

/* Saturation track - white to current hue */
.sat-track {
    background: linear-gradient(to right, #ffffff, hsl(210, 100%, 50%));
    border: 1px solid #efebeb;
}

/* Value/Brightness track - black through color to white */
.val-track {
    background: linear-gradient(to right, #000000, hsl(210, 100%, 50%), #ffffff);
    border: 1px solid #e6e6e6;
}

/* Color slider thumbs */
.color-slider-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    top: -2px;
    pointer-events: none;
    transform: translateX(-8px);
}

.color-slider-thumb {
    --thumb-color: hsl(210, 100%, 50%);
}

.color-slider-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--thumb-color);
    border: 3px solid black;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hue-thumb {
    left: 58.3%; /* 210/360 * 100 */
}

.sat-thumb {
    left: 100%;
}

.val-thumb {
    left: 50%;
}

/* Legacy styles kept for compatibility */
.hue-slider {
    background: linear-gradient(to right,
        hsl(0, 100%, 50%),
        hsl(60, 100%, 50%),
        hsl(120, 100%, 50%),
        hsl(180, 100%, 50%),
        hsl(240, 100%, 50%),
        hsl(300, 100%, 50%),
        hsl(360, 100%, 50%)
    );
}

/* Save Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1.5rem;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    text-align: center;
}

.modal-title {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.modal-round-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.modal-btn-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.modal-btn-circle svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-black);
}

.modal-round-btn:hover .modal-btn-circle {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-round-btn:active .modal-btn-circle {
    transform: scale(0.95);
}

.modal-btn-label {
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-neutral-700);
}

/* Save button - blue */
.modal-round-btn.save .modal-btn-circle {
    background: var(--color-blue-500);
    color: var(--color-black);
}

.modal-round-btn.save:hover .modal-btn-circle {
    background: var(--color-blue-600);
}

/* Share button - green */
.modal-round-btn.share .modal-btn-circle {
    background: var(--color-green-500);
    color: var(--color-black);
}

.modal-round-btn.share:hover .modal-btn-circle {
    background: var(--color-green-600);
}

/* Cancel/Close/Delete button - black circle with red icon */
.modal-round-btn.cancel .modal-btn-circle {
    background: var(--color-black);
}

.modal-round-btn.cancel .modal-btn-circle svg {
    stroke: #ef4444;
}

.modal-round-btn.cancel:hover .modal-btn-circle {
    background: var(--color-neutral-800);
}

/* Go back button - red circle with black icon */
.modal-round-btn.go-back .modal-btn-circle {
    background: var(--color-red-500);
}

.modal-round-btn.go-back .modal-btn-circle svg {
    stroke: var(--color-black);
}

.modal-round-btn.go-back:hover .modal-btn-circle {
    background: #dc2626;
}

/* ========================================
   About Page
   ======================================== */
.about-page {
    min-height: 100vh;
    padding: 5rem 1.5rem 2rem;
}

.about-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 0;
}

.page-title-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0s;
}

.page-title-row .page-badge {
    flex-shrink: 0;
}

.page-title-row h1 {
    margin-bottom: 0;
    line-height: 1;
    opacity: 1;
    transform: none;
    animation: none;
}

.about-container > h1 {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0s;
}

@keyframes cascadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0.1s;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero-image .hero-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    background: none;
    padding: 0;
    border-radius: 0;
}

.about-content {
    color: var(--color-neutral-700);
}

.about-section {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Cascade delays for about page sections */
.about-section:nth-child(1).animate-in {
    transition-delay: 0s;
}

.about-section:nth-child(2).animate-in {
    transition-delay: 0.1s;
}

.about-section:nth-child(3).animate-in {
    transition-delay: 0.2s;
}

.about-section:nth-child(4).animate-in {
    transition-delay: 0.3s;
}

.about-section h2 {
    color: var(--color-neutral-900);
    margin-bottom: 1rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.contact-info {
    padding-top: 2rem;
    border-top: 1px solid var(--color-neutral-200);
}

.contact-info h3 {
    color: var(--color-neutral-900);
    margin-bottom: 1rem;
}

.contact-info .email {
    color: var(--color-neutral-900);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-page {
    min-height: 100vh;
    padding: 5rem 1.5rem 2rem;
}

.contact-container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 0;
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0s;
}

.contact-intro {
    text-align: center;
    color: var(--color-neutral-600);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0.08s;
}

.form-container {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid var(--color-neutral-200);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0.16s;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-neutral-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--color-neutral-900);
    background: var(--color-white);
    border: 2px solid var(--color-neutral-300);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-neutral-400);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-neutral-900);
}

.form-group textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-neutral-900);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.submit-btn:hover {
    background: var(--color-neutral-800);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading {
    position: relative;
}

.submit-btn.loading svg,
.submit-btn.loading span {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success Message */
.success-message {
    background: var(--color-green-50);
    border: 2px solid var(--color-green-500);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--color-green-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-message h3 {
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--color-neutral-600);
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
}

.contact-info-item:nth-child(1) {
    animation-delay: 0.24s;
}

.contact-info-item:nth-child(2) {
    animation-delay: 0.32s;
}

.contact-info-item:nth-child(3) {
    animation-delay: 0.4s;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    background: var(--color-neutral-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.contact-info-item p {
    color: var(--color-neutral-900);
}

/* ========================================
   Footer
   ======================================== */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--color-neutral-500);
}

/* Home page footer - white text, positioned at bottom */
.home-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    color: var(--color-white);
    pointer-events: none;
}

.home-footer p {
    font-weight: 300;
    font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .collage-wrapper {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .home-page,
    .about-page,
    .contact-page {
        padding: 4.5rem 1rem 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* ========================================
   Hamburger Menu (New Design from V2)
   ======================================== */
.hamburger-menu {
    position: fixed;
    top: 3rem;
    right: 3rem;
    z-index: 200;
}

.hamburger-btn {
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hamburger-dropdown {
    position: absolute;
    top: 34px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    pointer-events: none;
}

.hamburger-dropdown.open {
    pointer-events: auto;
}

/* Cascade animation - each row drops from the top position */
.hamburger-dropdown a {
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Each item starts at top (Home position) and drops to its place */
.hamburger-dropdown a:nth-child(1) {
    transform: translateY(0);
}

.hamburger-dropdown a:nth-child(2) {
    transform: translateY(-100%);
}

.hamburger-dropdown a:nth-child(3) {
    transform: translateY(-200%);
}

.hamburger-dropdown.open a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: Contact drops first, then About, then Home appears */
.hamburger-dropdown.open a:nth-child(3) {
    transition-delay: 0s;
}

.hamburger-dropdown.open a:nth-child(2) {
    transition-delay: 0.1s;
}

.hamburger-dropdown.open a:nth-child(1) {
    transition-delay: 0.2s;
}

/* Quick close - all at once */
.hamburger-dropdown:not(.open) a {
    transition-delay: 0s;
}

.hamburger-dropdown a {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 4px 2px;
    background: var(--color-white);
    text-decoration: none;
    transition: transform 0.15s ease, background 0.3s ease;
}

.hamburger-dropdown a:hover {
    transform: scale(1.02);
}

.hamburger-dropdown a:active {
    transform: scale(0.98);
}

.hamburger-dropdown a.active {
    background: var(--color-teal);
    backdrop-filter: blur(2px);
}

.hamburger-dropdown.open a.active {
    background: var(--color-teal);
}

.hamburger-dropdown a p {
    font-size: 36px;
    line-height: 22px;
    text-transform: uppercase;
    text-align: right;
    white-space: pre;
    color: #090909;
    margin: 0;
    padding-top: 2px; /* Nudge text down for visual centering with TAY Birdie font */
}

.hamburger-dropdown a.active p {
    color: var(--color-white);
}

/* Hide old navbar on pages with hamburger menu */
.has-hamburger .navbar {
    display: none;
}

/* ========================================
   Admin Page
   ======================================== */
.admin-body {
    min-height: 100vh;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-screen.hidden {
    display: none;
}

.login-container {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 24rem;
    width: 100%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-neutral-200);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 0.5rem;
}

.login-intro {
    color: var(--color-neutral-500);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 1rem;
}

.login-error {
    color: var(--color-red-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: calc(var(--radius) / 2);
}

.login-error.hidden {
    display: none;
}

/* Admin Content Container */
.admin-content {
    min-height: 100vh;
}

.admin-content.hidden {
    display: none;
}

/* Logout Button */
.logout-btn {
    position: fixed;
    top: 3rem;
    left: 3rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-neutral-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neutral-600);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    z-index: 200;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
    background: var(--color-red-500);
    color: var(--color-white);
    border-color: var(--color-red-500);
    transform: scale(1.05);
}

.logout-btn:active {
    transform: scale(0.95);
}

.admin-page {
    min-height: 100vh;
    padding: 5rem 1.5rem 2rem;
}

.admin-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 0;
}

.admin-container h1 {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
}

.admin-intro {
    color: var(--color-neutral-600);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0.08s;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-neutral-200);
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0.16s;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-neutral-500);
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
}

.admin-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition);
}

.admin-tab:hover {
    color: var(--color-neutral-700);
}

.admin-tab.active {
    color: var(--color-neutral-900);
}

.admin-tab.active::after {
    background: var(--color-neutral-900);
}

/* Admin Sections */
.admin-section {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-neutral-200);
    opacity: 0;
    transform: translateY(20px);
    animation: cascadeIn 0.6s ease forwards;
    animation-delay: 0.24s;
}

.admin-section.hidden {
    display: none;
}

.admin-section h2 {
    margin-bottom: 0.5rem;
    color: var(--color-neutral-900);
}

.image-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-neutral-500);
}

.section-desc {
    color: var(--color-neutral-500);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Hero Image Display */
.hero-image-display {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.hero-image-display.no-hero {
    opacity: 0.6;
    background: var(--color-neutral-100);
    border-color: var(--color-neutral-200);
}

.hero-image-preview {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: calc(var(--radius) / 2);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-neutral-200);
}

.hero-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(251, 191, 36, 0.95);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

.hero-image-info {
    flex: 1;
}

.hero-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(251, 191, 36, 1);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.hero-filename {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-neutral-900);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.hero-desc {
    font-size: 0.75rem;
    color: var(--color-neutral-500);
}

/* Hero Star Button on Image Cards */
.hero-star-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    opacity: 0;
    transition: opacity var(--transition), background var(--transition), transform var(--transition);
    z-index: 2;
}

.image-card:hover .hero-star-btn {
    opacity: 1;
}

.hero-star-btn:hover {
    background: rgba(251, 191, 36, 0.9);
    transform: scale(1.1);
}

.hero-star-btn.active {
    opacity: 1;
    background: rgba(251, 191, 36, 0.95);
    color: #1a1a1a;
}

.hero-star-btn.active:hover {
    background: rgba(251, 191, 36, 1);
}

/* Hero Image Card Highlight */
.image-card.is-hero {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.8);
}

/* Multi-select Checkbox */
.select-checkbox {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--color-neutral-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
    z-index: 2;
}

.select-checkbox svg {
    opacity: 0;
    transition: opacity var(--transition);
}

.image-card:hover .select-checkbox {
    opacity: 1;
}

.select-checkbox:hover {
    border-color: rgba(0, 158, 163, 0.8);
    transform: scale(1.05);
}

.select-checkbox.checked {
    opacity: 1;
    background: rgba(0, 158, 163, 0.95);
    border-color: rgba(0, 158, 163, 0.95);
    color: var(--color-white);
}

.select-checkbox.checked svg {
    opacity: 1;
}

/* Selected Image Card State */
.image-card.selected {
    box-shadow: 0 0 0 3px rgba(0, 158, 163, 0.8);
}

.image-card.selected.is-hero {
    box-shadow: 0 0 0 3px rgba(0, 158, 163, 0.8), inset 0 0 0 2px rgba(251, 191, 36, 0.8);
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 158, 163, 0.1) 0%, rgba(0, 158, 163, 0.05) 100%);
    border: 2px solid rgba(0, 158, 163, 0.3);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    animation: slideDown 0.2s ease-out;
}

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

.bulk-select-info {
    font-weight: 600;
    color: var(--color-neutral-900);
    font-size: 0.95rem;
}

.bulk-select-info span {
    color: rgba(0, 158, 163, 1);
    font-weight: 700;
}

.bulk-actions {
    display: flex;
    gap: 0.75rem;
}

.bulk-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius);
    background: var(--color-white);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.bulk-btn:hover {
    background: var(--color-neutral-100);
    border-color: var(--color-neutral-400);
}

.bulk-btn.delete-selected {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.bulk-btn.delete-selected:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.bulk-btn svg {
    flex-shrink: 0;
}

.subsection-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-neutral-700);
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-neutral-200);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--color-neutral-300);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    margin-bottom: 2rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--color-neutral-500);
    background: var(--color-neutral-100);
}

.upload-icon {
    color: var(--color-neutral-400);
    margin-bottom: 1rem;
}

.upload-area p {
    color: var(--color-neutral-600);
    margin-bottom: 0.25rem;
}

.upload-link {
    color: var(--color-blue-500);
    font-weight: 500;
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--color-neutral-400);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.image-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-neutral-100);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-name {
    color: var(--color-white);
    font-size: 0.625rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
}

.delete-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-red-500);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: transform var(--transition), background var(--transition);
}

.delete-image-btn:hover {
    transform: scale(1.1);
    background: #dc2626;
}

/* Image Preview Container (About page) */
.image-preview-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.image-preview-container:hover .image-preview-overlay {
    opacity: 1;
}

.change-image-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-neutral-900);
    cursor: pointer;
    transition: transform var(--transition);
}

.change-image-btn:hover {
    transform: scale(1.05);
}

/* Form Fields in Admin */
.admin-section .form-group {
    margin-bottom: 1.25rem;
}

.admin-section .form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-neutral-600);
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.admin-section .form-group input,
.admin-section .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    color: var(--color-neutral-900);
    background: var(--color-white);
    border: 2px solid var(--color-neutral-200);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    outline: none;
}

.admin-section .form-group input:focus,
.admin-section .form-group textarea:focus {
    border-color: var(--color-neutral-900);
}

.admin-section .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Fields Configuration */
.form-fields-config {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.field-config {
    background: var(--color-neutral-100);
    padding: 1rem;
    border-radius: var(--radius);
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.field-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-neutral-700);
}

.field-config input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-family);
    font-size: 0.75rem;
    color: var(--color-neutral-900);
    background: var(--color-white);
    border: 1px solid var(--color-neutral-200);
    border-radius: calc(var(--radius) / 2);
    margin-bottom: 0.5rem;
    outline: none;
    transition: border-color var(--transition);
}

.field-config input:focus {
    border-color: var(--color-neutral-500);
}

.field-config input:last-child {
    margin-bottom: 0;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-neutral-300);
    border-radius: 24px;
    transition: background var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--color-white);
    border-radius: 50%;
    transition: transform var(--transition);
}

.toggle input:checked + .toggle-slider {
    background: var(--color-green-500);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Save Button */
.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background: var(--color-neutral-900);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.save-btn:hover {
    background: var(--color-neutral-800);
}

/* Delete Confirm Button - black circle with red icon */
.modal-round-btn.delete-confirm .modal-btn-circle {
    background: var(--color-black);
}

.modal-round-btn.delete-confirm .modal-btn-circle svg {
    stroke: #ef4444;
}

.modal-round-btn.delete-confirm:hover .modal-btn-circle {
    background: var(--color-neutral-800);
}

/* Image Preview Modal */
.preview-modal-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.image-preview-modal-content {
    background: var(--color-white);
    border-radius: var(--radius);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preview-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-neutral-100);
    min-height: 200px;
    max-height: calc(70vh - 6rem);
}

.preview-image-wrapper img {
    max-width: 100%;
    max-height: calc(70vh - 10rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--radius) / 2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Preview Navigation Buttons */
.preview-nav-btn {
    position: static;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
    z-index: 10;
}

.preview-nav-btn:hover {
    background: var(--color-neutral-100);
    transform: scale(1.05);
}

.preview-nav-btn:active {
    transform: scale(0.95);
}

.preview-nav-btn svg {
    stroke: var(--color-neutral-900);
}

.preview-info {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-neutral-200);
    text-align: center;
}

.preview-filename {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-neutral-900);
    word-break: break-all;
    margin-bottom: 0.25rem;
}

.preview-dimensions {
    font-size: 0.75rem;
    color: var(--color-neutral-500);
}

.preview-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    justify-content: center;
}

.preview-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.preview-btn:hover {
    transform: scale(1.02);
}

.preview-btn:active {
    transform: scale(0.98);
}

.preview-btn.delete {
    background: var(--color-black);
    color: var(--color-red-500);
}

.preview-btn.delete svg,
.preview-btn.delete svg * {
    stroke: #ef4444 !important;
}

.preview-btn.delete:hover {
    background: var(--color-neutral-800);
}

.preview-btn.close {
    background: var(--color-red-500);
    color: var(--color-black);
}

.preview-btn.close svg,
.preview-btn.close svg * {
    stroke: var(--color-black) !important;
}

.preview-btn.close:hover {
    background: #dc2626;
}

/* Make image cards clickable */
.image-card {
    cursor: pointer;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-neutral-900);
    color: var(--color-white);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 300;
    animation: toastIn 0.3s ease;
}

.toast.hidden {
    display: none;
}

.toast.success {
    background: var(--color-green-500);
}

.toast.error {
    background: var(--color-red-500);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .form-fields-config {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
