/* Email Form */
.email-form {
    flex: 1;
    padding: 20px;
}

.email-field {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.email-field label {
    width: 80px;
    font-weight: bold;
}

.email-field input {
    flex: 1;
    padding: 3px;
    border: 1px solid #7F9DB9;
    background: white;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
}

.email-body {
    margin-top: 20px;
}

.email-body textarea {
    width: 100%;
    height: 200px;
    padding: 5px;
    border: 1px solid #7F9DB9;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    resize: vertical;
}

.email-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Paint Application Styles */
#paint-window {
    width: 900px;
    height: 650px;
    top: 50px;
    left: 50px;
}

.paint-container {
    display: flex;
    height: calc(100% - 90px);
    background: #C0C0C0;
}

/* Paint Toolbox */
.paint-toolbox {
    width: 60px;
    background: #ECE9D8;
    border-right: 1px solid #848484;
    display: flex;
    flex-direction: column;
}

.toolbox-title {
    background: linear-gradient(to bottom, #0054E3 0%, #0046D5 50%, #0038C7 51%, #002FB2 100%);
    color: white;
    padding: 2px 5px;
    font-size: 11px;
    font-weight: bold;
}

.paint-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 4px;
    background: #C0C0C0;
    border: 1px inset #fff;
    margin: 4px;
}

.paint-tool {
    width: 25px;
    height: 25px;
    border: 1px solid #848484;
    background: #ECE9D8;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.paint-tool:hover {
    border: 1px solid #0054E3;
    background: #E3F4FF;
}

.paint-tool.active {
    border: 1px inset #848484;
    background: #C0C0C0;
}

.brush-sizes {
    padding: 8px;
    font-size: 11px;
}

.brush-sizes label {
    display: block;
    margin-bottom: 4px;
}

.brush-sizes input[type="range"] {
    width: 100%;
    height: 10px;
}

#size-display {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-size: 10px;
}

/* Paint Main Area */
.paint-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #808080;
}

.paint-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: auto;
}

#paint-canvas {
    background: white;
    border: 2px inset #000;
    cursor: crosshair;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Paint Colors */
.paint-colors {
    background: #ECE9D8;
    border-top: 1px solid #848484;
    padding: 8px;
}

.colors-title {
    background: linear-gradient(to bottom, #0054E3 0%, #0046D5 50%, #0038C7 51%, #002FB2 100%);
    color: white;
    padding: 2px 5px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
}

.color-palette {
    display: flex;
    gap: 10px;
    align-items: center;
}

.current-colors {
    display: flex;
    flex-direction: column;
}

.color-display {
    position: relative;
    width: 40px;
    height: 40px;
}

#primary-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #000;
    z-index: 2;
}

#secondary-color {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #000;
    z-index: 1;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(14, 16px);
    gap: 1px;
    background: #808080;
    padding: 2px;
    border: 1px inset #fff;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    cursor: pointer;
}

.color-swatch:hover {
    border: 1px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Paint-specific cursors */
#paint-canvas.pencil-cursor {
    cursor: url('data:image/x-icon;base64,AAACAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP//AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'), crosshair;
}

#paint-canvas.eraser-cursor {
    cursor: url('data:image/x-icon;base64,AAACAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'), crosshair;
}

#paint-canvas.fill-cursor {
    cursor: url('data:image/x-icon;base64,AAACAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP//AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'), crosshair;
}

/* MSN Messenger Window Styles */
#messenger-window {
    width: 450px;
    height: 550px;
    top: 100px;
    left: 200px;
}

.messenger-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 90px);
    background: #FAFAFA;
}

.messenger-header {
    background: linear-gradient(to bottom, #E8F2FE 0%, #D6E9FD 100%);
    border-bottom: 1px solid #A8C7E7;
    padding: 8px;
}

.messenger-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #333;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #666;
}

.status-indicator.online {
    background: #7FBA00;
    border-color: #5C8800;
}

.messenger-toolbar {
    display: flex;
    gap: 2px;
    margin-top: 8px;
}

.messenger-toolbar button {
    background: linear-gradient(to bottom, #FFFFFF 0%, #E3E3E3 100%);
    border: 1px solid #A0A0A0;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    min-width: 24px;
    height: 24px;
}

.messenger-toolbar button:hover {
    background: linear-gradient(to bottom, #E8F2FE 0%, #D6E9FD 100%);
    border-color: #7AA3D0;
}

/* Chat Area */
.messenger-chat {
    flex: 1;
    background: white;
    border: 1px solid #D4D0C8;
    margin: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    font-family: "Arial", sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

/* Chat Message Styles */
.chat-message {
    margin-bottom: 8px;
}

.chat-message .sender {
    font-weight: normal;
    color: #666;
    font-size: 11px;
    display: block;
    margin-bottom: 2px;
}

.chat-message .sender.other {
    color: #FF6600;
}

.chat-message .text {
    margin-left: 0;
    word-wrap: break-word;
}

/* MSN-specific font styles */
.msg-color-pink { color: #FF1493 !important; }
.msg-color-purple { color: #9932CC !important; }
.comic-sans { font-family: "Comic Sans MS", cursive !important; }

/* System messages and nudges */
.chat-nudge {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 8px 0;
    font-size: 11px;
}

/* Emoticons */
.chat-emoticon {
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
    margin: 0 2px;
}

/* Input Area */
.messenger-input {
    border-top: 1px solid #D4D0C8;
    background: #F0F0F0;
    padding: 8px;
}

.input-toolbar {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #D4D0C8;
}

.input-toolbar button {
    background: linear-gradient(to bottom, #FFFFFF 0%, #E3E3E3 100%);
    border: 1px solid #A0A0A0;
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    min-width: 20px;
    height: 20px;
}

.input-toolbar button:hover {
    background: linear-gradient(to bottom, #E8F2FE 0%, #D6E9FD 100%);
    border-color: #7AA3D0;
}

#messenger-input-text {
    width: 100%;
    height: 60px;
    border: 1px solid #7F9DB9;
    padding: 4px;
    font-family: "Arial", sans-serif;
    font-size: 12px;
    resize: none;
    background: white;
}

#messenger-input-text:focus {
    outline: none;
    border-color: #4D90FE;
}

.messenger-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 8px;
}

.send-button {
    background: linear-gradient(to bottom, #FFFFFF 0%, #E3E3E3 100%);
    border: 1px solid #003C74;
    border-radius: 3px;
    padding: 4px 16px;
    font-size: 11px;
    cursor: pointer;
    font-weight: normal;
}

.send-button:hover:not(:disabled) {
    background: linear-gradient(to bottom, #E8F2FE 0%, #D6E9FD 100%);
    border-color: #0078D7;
}

.send-button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Scrollbar styling for chat */
.chat-messages::-webkit-scrollbar { width: 16px; }
.chat-messages::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-left: 1px solid #D4D0C8;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #E3E3E3 0%, #D0D0D0 100%);
    border: 1px solid #A0A0A0;
    border-radius: 0;
}
.chat-messages::-webkit-scrollbar-button {
    background: linear-gradient(to bottom, #F0F0F0 0%, #D0D0D0 100%);
    border: 1px solid #A0A0A0;
    height: 16px;
}

/* Typing indicator */
#typing-indicator {
    color: #666;
    font-style: italic;
}
#typing-indicator::after {
    content: '...';
    display: inline-block;
    animation: typing 1.5s infinite;
}

/* Cat Rain Styles */
#cat-rain-container { overflow: hidden; }
.falling-cat {
    user-select: none;
    -webkit-user-drag: element;
    will-change: transform, top;
}
.falling-cat:active { cursor: grabbing !important; }
.falling-cat[data-landed="true"] { animation: catBounce 0.5s ease-out; }

/* Free Me Game */
body.free-me-game-active { overflow: hidden; }
body.free-me-game-active, body.free-me-game-active * { cursor: none !important; }
.flame-projectile {
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url('flame.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2000;
}
body.free-me-game-active .flame-projectile {
    width: 36px;
    height: 36px;
}

/* Countdown GPT-5 Styles */
#countdown-window {
    width: 600px;
    height: 520px;
    left: calc(50% - 300px);
    top: calc(50% - 260px);
}

.countdown-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: calc(100% - 100px);
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    overflow-y: auto;
}

.countdown-header { text-align: center; margin-bottom: 20px; }
.countdown-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    animation: slowRotate 10s linear infinite;
}
.countdown-header h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: #003366;
    margin: 10px 0;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.countdown-tagline { font-style: italic; color: #666; font-size: 14px; }

.countdown-display {
    background: #000;
    border: 2px inset #c0c0c0;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,255,0,0.2);
}

.countdown-time { display: flex; justify-content: center; align-items: center; gap: 10px; }
.time-unit { display: flex; flex-direction: column; align-items: center; }
.time-value {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-weight: bold;
    line-height: 1;
}
.time-label { font-size: 12px; color: #00cc00; margin-top: 5px; letter-spacing: 2px; }
.time-separator { font-size: 36px; color: #00ff00; animation: blink 1s infinite; }

.countdown-target { margin-top: 15px; color: #00cc00; font-size: 14px; }

.countdown-features { display: flex; gap: 20px; margin: 20px 0; flex: 1; }
.feature-box { flex: 1; background: white; border: 1px solid #c0c0c0; padding: 15px; box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a; }
.feature-box h3 { font-size: 14px; margin-bottom: 10px; color: #003366; }
.feature-box ul { list-style: none; padding: 0; font-size: 12px; }
.feature-box li { padding: 2px 0; color: #333; }

.progress-bar { width: 100%; height: 20px; background: #e0e0e0; border: 1px inset #c0c0c0; margin: 10px 0; position: relative; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, #0066cc, #0099ff); width: 0%; transition: width 1s ease; position: relative; }
.progress-fill::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.3) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.3) 75%);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}
.progress-text { text-align: center; font-size: 12px; color: #666; }

.countdown-footer { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

/* Animate countdown numbers on update */
.time-value.updating { animation: numberFlip 0.3s ease-in-out; }

/* Fix countdown window status bar */
#countdown-window .window-status {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    background: #ece9d8;
    border-top: 1px solid #fff;
    box-shadow: inset 0 1px 0 #919b9c;
}

/* Celebration classes for countdown */
.celebration-flash {
    animation: celebration-flash 1s ease-in-out 6;
}

.celebration-dance {
    animation: celebration-dance 0.8s ease-in-out 8;
}

/* FREE API KEY Button - Early 2000s Scam Style */
.free-api-key-button {
    display: block;
    width: 90%;
    margin: 20px auto;
    padding: 15px 20px;
    background: #FFFF00;
    background: linear-gradient(to bottom, #FFFF00 0%, #FFD700 50%, #FFA500 100%);
    border: 3px solid #FF0000;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 0, 0.5), 0 5px 10px rgba(0, 0, 0, 0.5);
    animation: scamPulse 0.5s infinite alternate, scamGlow 2s infinite;
    font-family: "Impact", "Arial Black", sans-serif;
    text-transform: uppercase;
    overflow: visible;
}
.free-api-key-button:hover { animation: scamPulse 0.2s infinite alternate, scamGlow 1s infinite, scamShake 0.1s infinite; transform: scale(1.05); }
.free-api-key-button .blink-text {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    text-shadow: 2px 2px 0 #FF0000, -2px -2px 0 #FF0000, 2px -2px 0 #FF0000, -2px 2px 0 #FF0000;
    animation: scamBlink 0.5s infinite;
    letter-spacing: 2px;
}
.free-api-key-button .subtext {
    display: block;
    font-size: 16px;
    color: #FF0000;
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    animation: scamBounce 0.3s infinite alternate;
}

/* Windows Media Player Styles */
#media-player-window {
    width: 800px;
    height: 600px;
    left: calc(50% - 400px);
    top: calc(50% - 300px);
}

.media-player-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 72px);
    background: #000;
}

.media-player-video-area {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#media-player-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-player-controls {
    background: linear-gradient(to bottom, #4a5568, #2d3748);
    padding: 10px;
    border-top: 1px solid #1a202c;
}

.media-info {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 11px;
    margin-bottom: 10px;
    padding: 0 5px;
}

.now-playing { font-weight: bold; }
.media-time { color: #00ff00; font-family: 'Courier New', monospace; }

.player-controls { display: flex; justify-content: center; gap: 5px; margin-bottom: 10px; }
.player-btn {
    background: linear-gradient(to bottom, #606c88, #3f4c6b);
    border: 1px solid #2d3748;
    color: #fff;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 3px;
    min-width: 40px;
}
.player-btn:hover { background: linear-gradient(to bottom, #6b7891, #4a5568); }
.player-btn:active { background: linear-gradient(to bottom, #3f4c6b, #2d3748); }

.volume-control { display: flex; align-items: center; gap: 10px; padding: 0 20px; margin-bottom: 10px; }
.volume-control span { color: #fff; }
.volume-slider { flex: 1; max-width: 100px; height: 4px; background: #2d3748; outline: none; cursor: pointer; }
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px; height: 12px; background: #00ff00; cursor: pointer; border-radius: 50%;
}

.seek-bar { height: 15px; background: #1a202c; border: 1px solid #2d3748; position: relative; cursor: pointer; margin: 0 5px; }
.seek-progress { height: 100%; background: linear-gradient(to right, #00ff00, #00cc00); width: 0%; }

.media-player-sidebar {
    position: absolute;
    right: 0; top: 0; width: 200px; height: 100%;
    background: #2d3748;
    border-left: 1px solid #1a202c;
    display: none;
}

.sidebar-tabs { display: flex; background: #1a202c; }
.sidebar-tab { flex: 1; padding: 5px; background: none; border: none; color: #a0aec0; cursor: pointer; font-size: 11px; }
.sidebar-tab.active { background: #2d3748; color: #fff; }

.playlist { padding: 10px; overflow-y: auto; height: calc(100% - 30px); }
.playlist-item { color: #a0aec0; padding: 5px; cursor: pointer; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist-item:hover { background: #374151; color: #fff; }
.playlist-item.active { background: #4a5568; color: #00ff00; }
