/* === Y2K Holographic Desktop CSS === */

:root {
    --bg-pearl: #fdfcfb;
    --bg-lilac: #e2d1f9;
    --bg-silver: #e2e2e2;
    --bg-teal: #d0f4f0;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
    --font-pixel: 'Press Start 2P', cursive;
    --font-ui: 'Space Mono', monospace;
    
    --badge-red: #ff4b4b;
    --badge-orange: #ff914d;
    --btn-pink: linear-gradient(135deg, #ff6b9e 0%, #ff3b7c 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Desktop shouldn't scroll */
    position: fixed; /* Lock it down */
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--text-dark);
}

/* --- Holographic Background --- */
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-ui);
    color: var(--text-color);
    background: linear-gradient(
        125deg, 
        #aae2f2 0%, 
        #ff99c2 25%, 
        #c79cf5 50%, 
        #9df2a6 75%, 
        #ffce99 100%
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 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)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Top Bar --- */
.top-bar {
    height: var(--top-bar-height);
    background: linear-gradient(180deg, #e4e7eb 0%, #b8c0c8 50%, #a6afb8 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 white, 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid #8e949c;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left span.name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.5px;
}

.top-bar .icon {
    font-size: 16px;
}

.top-bar .welcome {
    font-weight: 400;
    color: #666;
}

/* --- Desktop Area --- */
.desktop {
    position: absolute;
    top: 35px; /* below top bar */
    left: 0;
    right: 0;
    bottom: 0; /* Extend to bottom so icons can pass behind dock */
    padding: 40px 40px 100px 40px; /* Extra bottom padding for dock space */
    display: grid;
    grid-template-columns: repeat(3, 120px); /* Matches the original 3-column layout */
    grid-auto-flow: row;
    gap: 20px;
    justify-content: start;
    overflow: hidden;
}

/* --- Desktop Icons --- */
.desktop-icon {
    position: relative; /* Changed from absolute for grid */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    cursor: pointer;
    border-radius: 24px;
    padding: 10px;
    transition: transform 0.1s, background 0.2s;
    user-select: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    justify-self: center;
    z-index: 10;
}

.desktop-icon.dragging {
    transition: none !important;
    z-index: 1000 !important;
    opacity: 0.8;
}

.desktop-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.35);
}

.desktop-icon:active, .desktop-icon.selected {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.45);
}

.desktop-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    margin-bottom: 8px;
    pointer-events: none; /* Prevent drag issues with img */
}

.desktop-icon span {
    text-align: center;
    font-size: 10px;
    line-height: 1.4;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

/* Notification Badges */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge.red { background-color: #ff3b30; }
.badge.orange { background-color: #ff9500; }
.badge.green { background-color: #34c759; }

.pop-badge {
    animation: popBounce 1s infinite alternate cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes popBounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.3) translateY(-3px); }
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* --- Dock --- */
.dock-container {
    position: fixed;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.dock {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    gap: 15px;
    box-shadow: var(--glass-shadow);
    align-items: center;
}

.dock-icon {
    width: 55px;
    height: 55px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dock-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.dock-icon:hover {
    transform: scale(1.15) translateY(-10px);
}

.dock-icon.divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 2px;
    padding: 0;
    cursor: default;
}

.dock-icon:hover.divider {
    transform: none;
}

.date-icon {
    position: relative;
    flex-direction: column;
}

/* --- Windows --- */
#windows-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Let clicks pass through to desktop if no window */
}

.window {
    position: absolute;
    background: #e4e7eb; /* Metallic light gray */
    border: 2px solid #ffffff; /* Inner highlight */
    border-right: 2px solid #8e949c; /* shadow */
    border-bottom: 2px solid #8e949c; /* shadow */
    box-shadow: 0 0 0 1px #a3abb5, 0 10px 30px rgba(0,0,0,0.3); /* Outer metallic ring */
    border-radius: 4px;
    width: 400px;
    max-width: 95vw !important;
    height: 400px; /* Fixed height for windows to support scrollbars */
    pointer-events: auto; /* Re-enable clicks for the window */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.window-header {
    background: linear-gradient(180deg, #e4e7eb 0%, #b8c0c8 50%, #a6afb8 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    border-bottom: 2px solid #8e949c;
    box-shadow: inset 0 1px 0 white;
}

.window-header:active {
    cursor: grabbing;
}

.window-title {
    font-family: var(--font-pixel);
    font-size: 10px;
    font-weight: 700;
    color: #2b3036;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-btn {
    width: 20px;
    height: 20px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.window-minimize {
    background: #ffbd44;
    border: 1px solid #e09e2e;
    border-bottom: 2px solid #c28827;
    border-right: 2px solid #c28827;
    border-top: 1px solid #ffdc91;
    border-left: 1px solid #ffdc91;
    color: #8c631a;
}

.window-minimize:active {
    border: 1px solid #c28827;
}

.window-close {
    background: #ff5e5e;
    border: 1px solid #da3b3b;
    border-bottom: 2px solid #a82b2b;
    border-right: 2px solid #a82b2b;
    border-top: 1px solid #ff9191;
    border-left: 1px solid #ff9191;
    color: white;
}

.window-close:active {
    border: 1px solid #a82b2b;
}

.window-content {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
    background: #fff;
}

.window-content canvas {
    max-width: 100%;
    height: auto;
}

/* Text Content Specifics */
.text-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    background-color: #fafafa;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.02) 75%, rgba(0,0,0,0.02)), 
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.02) 75%, rgba(0,0,0,0.02));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* --- Sticker Collage --- */
.nail-sticker {
    position: absolute;
    max-width: 140px;
    height: auto;
    cursor: grab;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
    filter: 
        drop-shadow(2px 2px 0px white) 
        drop-shadow(-2px -2px 0px white) 
        drop-shadow(2px -2px 0px white) 
        drop-shadow(-2px 2px 0px white) 
        drop-shadow(0px 8px 15px rgba(0,0,0,0.25));
    z-index: 1;
}

.nail-sticker:hover {
    transform: scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

.nail-sticker:active {
    cursor: grabbing;
}


.text-content h2 {
    margin-bottom: 15px;
    font-family: var(--font-pixel);
    font-size: 14px;
}
.text-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Quiz Specifics */
.quiz-window {
    width: 560px;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 24px 32px;
}

.quiz-image-container {
    flex: 1;
}

.quiz-question-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #222;
    text-align: center;
}

.quiz-btn {
    background: white;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 10px;
    font-family: var(--font-pixel);
    font-size: 9px;
    cursor: pointer;
    transition: all 0.1s;
}

.quiz-btn:hover {
    background: #f0f0f0;
}

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

.window-footer {
    background: #e8e8e8;
    padding: 10px;
    text-align: right;
    border-top: 1px solid #ccc;
}

.quiz-progress {
    display: inline-block;
    background: var(--btn-pink);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: var(--font-pixel);
    font-size: 9px;
}

/* --- Star Trail --- */
.star {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    font-size: 14px;
    animation: fallAndFade 1s linear forwards;
}

@keyframes fallAndFade {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(50px) scale(0.2) rotate(180deg);
        opacity: 0;
    }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 14px;
    background: #dce2e8;
    border-left: 1px solid #8e949c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #e4e7eb 0%, #b8c0c8 50%, #a6afb8 100%);
    border: 1px solid #8e949c;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    box-shadow: inset 1px 0 0 white, inset 0 1px 0 white;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #f0f3f5 0%, #c4cbd3 50%, #b8c0c8 100%);
}

/* --- Responsiveness --- */

/* Laptops and Small Desktops */
@media (max-width: 1200px) {
    .window {
        width: 80% !important;
        left: 10% !important;
    }
}

/* =====================================================
   PAGINATION (DESKTOP / MOBILE)
   ===================================================== */
.desktop-page, .dock-page { display: contents; }
.mobile-dots { display: none; }

/* Tablets and Mobile */
@media (max-width: 768px) {
    .top-bar-left span.welcome { display: none; }
    
    /* Force overriding grid display contents */
    .desktop-page { display: grid; }
    .dock-page { display: flex; }
    
    .desktop {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 0 100px 0;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .desktop::-webkit-scrollbar { display: none; }
    
    .desktop-page {
        min-width: 100vw;
        scroll-snap-align: center;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, max-content);
        gap: 20px 15px;
        padding: 0 15px;
        align-content: start;
        justify-items: center;
    }
    
    .desktop-icon { width: 85px; height: 85px; border-radius: 20px; }
    .desktop-icon img { width: 42px; height: 42px; }
    
    .dock-container {
        flex-direction: column;
        align-items: center;
        bottom: 15px;
    }
    
    .dock {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 8px 0;
        scroll-behavior: smooth;
        width: 90vw;
        border-radius: 20px;
    }
    .dock::-webkit-scrollbar { display: none; }
    
    .dock-page {
        min-width: 90vw; /* Match dock width */
        scroll-snap-align: center;
        justify-content: center;
        gap: 15px;
    }
    
    .dock-icon { width: 50px; height: 50px; padding: 8px; border-radius: 12px; }
    .dock-icon.divider { display: none; }
    
    .mobile-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 15px;
        position: absolute;
        top: 250px; /* Position right below the two rows of desktop icons */
        left: 0;
        pointer-events: none;
    }
    .dock-dots {
        margin-top: 0px;
        margin-bottom: 8px;
        position: relative;
        top: auto;
    }
    .dot {
        width: 6px; height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.4);
        border: 1px solid rgba(0,0,0,0.2);
        transition: background 0.2s;
    }
    .dot.active { background: rgba(255,255,255,0.9); }
    
    /* Make all windows perfectly readable on mobile, leaving room for dock */
    .window {
        position: fixed !important;
        width: 95vw !important;
        height: auto !important; /* Only as big as needed */
        max-height: calc(100vh - 160px) !important;
        left: 2.5vw !important;
        top: 45px !important;
        display: flex;
        flex-direction: column;
    }
    
    /* These specific windows need to be full height on mobile */
    #window-readme, 
    #window-portfolio, 
    #window-pictures, 
    #window-aissa,
    #window-chrome,
    #window-spotify,
    [id^="window-portfolio-"] {
        height: calc(100vh - 160px) !important;
    }
    
    .window-header { padding: 10px; flex-shrink: 0; }
    .window-title { font-size: 10px; }
    
    #clippy-container {
        bottom: 120px !important;
        right: 10px !important;
    }
}

/* --- Spotify Visualizer --- */
.spotify-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-top: 5px;
    padding: 0 10px;
}

.visualizer-bar {
    width: 6px;
    background: #ff6b9e; /* Pink to match user theme */
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 107, 158, 0.5);
    animation: bounce-bar 0.8s ease-in-out infinite alternate;
}

@keyframes bounce-bar {
    0% { height: 4px; opacity: 0.5; }
    100% { height: 35px; opacity: 1; }
}

/* --- rAIssa Chat UI --- */
.raissa-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fdfcfb;
    font-family: var(--font-ui);
}

.raissa-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.raissa-avatar {
    width: 80px;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.raissa-avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.raissa-status-container {
    display: flex;
    flex-direction: column;
}

.raissa-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

#raissa-status {
    font-size: 10px;
    color: #888;
    min-height: 12px;
}

#raissa-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafafa;
}

.raissa-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
    font-family: var(--font-ui);
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.raissa-bot {
    background: #f3f0ff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.raissa-user {
    background: #f4c0d1;
    color: #4b1528;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.raissa-typing {
    color: #aaa;
    font-style: italic;
    font-size: 10px;
    align-self: flex-start;
    padding: 5px 15px;
}

#raissa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.raissa-chip {
    background: #fdf0f5;
    border: 1px solid #f4c0d1;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    cursor: pointer;
    color: #c04470;
    transition: all 0.2s;
}

.raissa-chip:hover {
    background: #f9d9e7;
    transform: translateY(-1px);
}

.raissa-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

#raissa-inp {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-family: var(--font-ui);
    font-size: 12px;
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s;
}

#raissa-inp:focus {
    border-color: #f4c0d1;
    background: #fff;
}

.raissa-send-btn {
    background: #d4537e;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.2s;
}

.raissa-send-btn:hover {
    background: #c04470;
    transform: scale(1.05);
}

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

/* --- Portfolio Folder Grid --- */
.portfolio-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    color: #444;
    text-align: center;
    transition: background 0.15s, transform 0.15s;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255,255,255,0.6);
}

.portfolio-folder:hover {
    background: rgba(244, 192, 209, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(212, 83, 126, 0.12);
}

.portfolio-folder--empty {
    cursor: default;
    pointer-events: none;
}

/* PDF iframe fills the window content area */
#window-portfolio-gtc .window-content,
#window-portfolio-enduritol .window-content {
    padding: 0;
    overflow: hidden;
}

/* PDF viewer — clean edge-to-edge, no dark surround */
.pdf-viewer {
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-viewer iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

/* =====================================================
   TOP BAR — SOUND & LANGUAGE
   ===================================================== */
.topbar-sound {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.sound-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(240,240,245,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 10px 14px;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    white-space: nowrap;
}

.sound-popup--open {
    display: flex !important;
}

.lang-btn {
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 2px 8px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    color: #2b3036;
    cursor: pointer;
    transition: background 0.15s;
    margin-right: 4px;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.6);
}

/* =====================================================
   CALENDAR
   ===================================================== */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 8px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(180deg, #f4c0d1 0%, #fde8ef 100%);
}

.cal-nav {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #d4537e;
    font-weight: 700;
    line-height: 1;
    padding: 0 6px;
    transition: transform 0.1s;
}

.cal-nav:hover { transform: scale(1.2); }

.cal-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 10px 0;
    background: #fdf6f9;
}

.cal-day-labels span {
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 7px;
    color: #d4537e;
    padding: 4px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 4px 10px;
    gap: 2px;
    background: #fdf6f9;
}

.cal-day {
    position: relative;
    text-align: center;
    padding: 6px 2px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    color: #333;
    transition: background 0.1s;
    min-height: 36px;
}

.cal-day:hover { background: rgba(244,192,209,0.35); }

.cal-day--empty { cursor: default; }
.cal-day--empty:hover { background: none; }

.cal-day--today {
    background: #f4c0d1;
    font-weight: 700;
    color: #d4537e;
    border-radius: 50%;
}

.cal-day--has-events::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d4537e;
}

.cal-event-dot {
    position: absolute;
    top: 1px;
    right: 2px;
    font-size: 9px;
    line-height: 1;
}

.cal-events {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px;
    border-top: 1px solid #eee;
    background: #fff;
    min-height: 80px;
}

.cal-event-item {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #444;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fdf6f9;
    border-left: 3px solid #f4c0d1;
}

/* =====================================================
   GALLERY DELETE BUTTON & TRASH SYSTEM
   ===================================================== */
.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-img-wrap img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.gallery-img-wrap:hover img {
    opacity: 0.85;
}

.gallery-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255,255,255,0.88);
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 2;
}

.gallery-img-wrap:hover .gallery-delete-btn {
    opacity: 1;
}

.gallery-delete-btn:hover {
    background: #ff5e5e;
    color: white;
    border-color: #ff5e5e;
}

.trash-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.trash-restore-btn {
    font-size: 9px;
    font-family: var(--font-pixel);
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px 6px;
    cursor: pointer;
    color: #888;
    width: 100%;
    transition: all 0.15s;
}

.trash-restore-btn:hover {
    background: #f4c0d1;
    border-color: #d4537e;
    color: #d4537e;
}
