/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Theme */
:root {
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: rgba(255, 255, 255, 0.1);
    --text-primary: #333;
    --text-secondary: #666;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #ff6b9d;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-secondary: rgba(0, 0, 0, 0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --card-bg: rgba(30, 30, 50, 0.95);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-color: #ff6b9d;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" text-anchor="middle" fill="%23ffffff" opacity="0.1" font-size="12">♥</text></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.theme-controls {
    display: flex;
    gap: 10px;
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
    border-color: var(--accent-color);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn i {
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-btn i:before {
    content: "\f185"; /* sun icon */
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.header h1 i {
    color: #ff6b9d;
    animation: heartbeat 2s ease-in-out infinite;
}

.header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* Main Content */
.main-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px var(--shadow-color);
}

.card h2, .card h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 600;
}

.card h2 i, .card h3 i {
    color: #ff6b9d;
    margin-right: 10px;
}

/* Form Elements */
#messageInput {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

#messageInput:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255,107,157,0.1);
    background: rgba(255,255,255,1);
}

.char-count {
    text-align: right;
    margin: 10px 0;
    color: #718096;
    font-size: 14px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,157,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,157,0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.6);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Link Section */
.link-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

#generatedLink {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: monospace;
    font-size: 14px;
    background: rgba(255,255,255,0.8);
}

.link-info {
    color: #718096;
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
}

/* Display Section */
.message-header {
    text-align: center;
    margin-bottom: 30px;
}

.hearts {
    margin-top: 15px;
}

.hearts i {
    font-size: 1.5rem;
    color: #ff6b9d;
    margin: 0 10px;
    animation: heartFloat 3s ease-in-out infinite;
}

.heart-1 { animation-delay: 0s; }
.heart-2 { animation-delay: 0.5s; }
.heart-3 { animation-delay: 1s; }

@keyframes heartFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* Typing Animation */
.typing-container {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    position: relative;
    border-left: 4px solid #ff6b9d;
}

.typing-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2d3748;
    font-weight: 400;
}

.cursor {
    font-size: 1.2rem;
    color: #ff6b9d;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(72,187,120,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

/* Read-Only Mode Styles */
.read-only-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 15px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: readOnlyPulse 2s infinite;
}

.read-only-badge i {
    margin-right: 5px;
    font-size: 0.9em;
}

@keyframes readOnlyPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    }
}

/* Sleeping Teddy Animation */
.sleeping-teddy {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50% 50% 45% 45%;
    z-index: 100;
    animation: sleepingBreathe 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.sleeping-teddy::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 10px;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    box-shadow: 35px 0 0 0 #8B4513;
}

.sleeping-teddy::after {
    content: '😴';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: sleepingZ 2s ease-in-out infinite;
}

.sleeping-teddy .teddy-arms {
    position: absolute;
    top: 35px;
    left: -10px;
    width: 20px;
    height: 30px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    box-shadow: 70px 0 0 0 #8B4513;
}

.sleeping-teddy .teddy-legs {
    position: absolute;
    bottom: -15px;
    left: 15px;
    width: 20px;
    height: 25px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    box-shadow: 30px 0 0 0 #8B4513;
}

.sleeping-teddy .sleep-bubble {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 40px;
    height: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    animation: sleepBubble 4s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Shared Video Styles */
.shared-video-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-info h4 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 16px;
    text-align: center;
}

.shared-video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

@keyframes sleepingBreathe {
    0%, 100% {
        transform: scale(1) rotate(-2deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes sleepingZ {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

@keyframes sleepBubble {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    10%, 70% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Video Upload Section Styles */
.video-upload-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
}

.video-upload-section:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f1f3f4, #e8eaf6);
}

.video-upload-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Message Expiration Section */
.expiration-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.expiration-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expiration-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.expiration-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.expiration-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px;
}

.video-input {
    display: none;
}

.video-upload-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    border: none;
}

.video-upload-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.video-upload-btn i {
    margin-right: 8px;
}

.video-preview {
    margin-top: 15px;
    position: relative;
}

.video-preview video {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.remove-video-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-video-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .theme-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: 15px;
        right: 15px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .message-input {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 120px;
    }
    
    .link-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%;
        justify-content: center;
        min-height: 48px; /* Touch-friendly size */
        font-size: 1rem;
    }
    
    .video-upload-section {
        margin-top: 15px;
    }
    
    .char-count {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: 10px;
        right: 10px;
    }
    
    .card {
        padding: 15px;
        border-radius: 15px;
    }
    
    .message-input {
        min-height: 100px;
        padding: 12px;
        font-size: 16px;
    }
    
    .typing-container {
        padding: 15px;
    }
    
    .typing-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .link-display {
        font-size: 0.85rem;
        padding: 10px;
        word-break: break-all;
    }
    
    .notification {
        font-size: 0.9rem;
        padding: 10px 15px;
        margin: 10px;
    }
    
    .video-preview {
        max-height: 200px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Teddy Bear and Chocolate Animations */
.floating-teddy, .floating-chocolate {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 30px;
    animation: floatAndFade 4s ease-out forwards;
}

.floating-teddy {
    color: #8B4513;
}

.floating-chocolate {
    color: #D2691E;
}

@keyframes floatAndFade {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-50px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-100px) rotate(180deg) scale(1);
    }
    75% {
        transform: translateY(-150px) rotate(270deg) scale(0.9);
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) rotate(360deg) scale(0.5);
    }
}

/* Background Teddy and Chocolate Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.bg-teddy, .bg-chocolate {
    position: absolute;
    font-size: 20px;
    opacity: 0.1;
    animation: backgroundFloat 15s linear infinite;
}

.bg-teddy {
    color: #8B4513;
}

.bg-chocolate {
    color: #D2691E;
}

@keyframes backgroundFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Romantic Pulse Animation for Special Elements */
.romantic-pulse {
    animation: romanticPulse 2s ease-in-out infinite;
}

@keyframes romanticPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

/* Chocolate Rain Effect */
.chocolate-rain {
    position: fixed;
    top: -50px;
    font-size: 16px;
    color: #D2691E;
    pointer-events: none;
    z-index: 9997;
    animation: chocolateRain 6s linear infinite;
}

@keyframes chocolateRain {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Teddy Bear Bounce Effect */
.teddy-bounce {
    position: fixed;
    font-size: 25px;
    color: #8B4513;
    pointer-events: none;
    z-index: 9997;
    animation: teddyBounce 3s ease-out forwards;
}

@keyframes teddyBounce {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-80px) scale(1.2) rotate(15deg);
    }
    50% {
        transform: translateY(-40px) scale(1.1) rotate(-10deg);
    }
    75% {
        transform: translateY(-60px) scale(1.15) rotate(5deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120px) scale(0.8) rotate(0deg);
        opacity: 0;
    }
}

/* Magical Sparkle Effects */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 16px;
    animation: sparkleAnimation 2s ease-out forwards;
}

.sparkle-gold { color: #FFD700; }
.sparkle-pink { color: #FF69B4; }
.sparkle-purple { color: #DA70D6; }
.sparkle-cyan { color: #00FFFF; }

@keyframes sparkleAnimation {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

/* Butterfly Animations */
.butterfly {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 24px;
    animation: butterflyFly 8s ease-in-out forwards;
}

.butterfly-pink { color: #FF1493; }
.butterfly-blue { color: #87CEEB; }
.butterfly-purple { color: #DDA0DD; }
.butterfly-yellow { color: #FFD700; }

@keyframes butterflyFly {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(0) rotate(0deg) scale(0.8);
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateX(25vw) translateY(-50px) rotate(15deg) scale(1.1);
    }
    50% {
        transform: translateX(50vw) translateY(-20px) rotate(-10deg) scale(1);
    }
    75% {
        transform: translateX(75vw) translateY(-80px) rotate(20deg) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100vw) translateY(-100px) rotate(0deg) scale(0.8);
    }
}

/* Flower Petal Falling Animation */
.flower-petal {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    font-size: 20px;
    animation: petalFall 6s linear forwards;
}

.petal-rose { color: #FF69B4; }
.petal-cherry { color: #FFB6C1; }
.petal-lavender { color: #E6E6FA; }
.petal-peach { color: #FFCBA4; }

@keyframes petalFall {
    0% {
        opacity: 1;
        transform: translateY(-50px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(25vh) rotate(90deg) scale(0.9);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.1);
    }
    75% {
        transform: translateY(75vh) rotate(270deg) scale(0.8);
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg) scale(0.6);
    }
}

/* Rainbow Gradient Effects */
.rainbow-text {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowAnimation 3s ease-in-out infinite;
}

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

/* Glitter Trail Effect */
.glitter-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FFD700, transparent);
    border-radius: 50%;
    animation: glitterTrail 1.5s ease-out forwards;
}

@keyframes glitterTrail {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
    }
}

/* Cute Emoji Reactions */
.emoji-reaction {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 28px;
    animation: emojiReaction 3s ease-out forwards;
}

@keyframes emojiReaction {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(-15deg);
    }
    25% {
        transform: translateY(-30px) scale(1.3) rotate(5deg);
    }
    50% {
        transform: translateY(-50px) scale(1.1) rotate(-5deg);
    }
    75% {
        transform: translateY(-70px) scale(1.2) rotate(10deg);
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8) rotate(0deg);
    }
}

/* Magic Wand Effect */
.magic-wand {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 22px;
    color: #FFD700;
    animation: magicWand 2.5s ease-out forwards;
}

@keyframes magicWand {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    30% {
        transform: translateY(-40px) rotate(180deg) scale(1.4);
    }
    60% {
        transform: translateY(-60px) rotate(270deg) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg) scale(0.6);
    }
}

/* Floating Stars Background */
.floating-star {
    position: absolute;
    font-size: 14px;
    color: #FFD700;
    opacity: 0.3;
    animation: floatingStar 12s linear infinite;
}

@keyframes floatingStar {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* 3D Text Effects */
.text-3d {
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25);
    transform: perspective(500px) rotateX(15deg);
    animation: text3DFloat 4s ease-in-out infinite;
}

@keyframes text3DFloat {
    0%, 100% {
        transform: perspective(500px) rotateX(15deg) translateY(0);
    }
    50% {
        transform: perspective(500px) rotateX(15deg) translateY(-10px);
    }
}

/* Neon Glow Effects */
.neon-glow {
    color: #fff;
    text-shadow:
        0 0 5px #ff0080,
        0 0 10px #ff0080,
        0 0 15px #ff0080,
        0 0 20px #ff0080,
        0 0 35px #ff0080,
        0 0 40px #ff0080;
    animation: neonFlicker 2s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 5px #ff0080,
            0 0 10px #ff0080,
            0 0 15px #ff0080,
            0 0 20px #ff0080,
            0 0 35px #ff0080,
            0 0 40px #ff0080;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Particle Explosion Effect */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: particleExplosion 2s ease-out forwards;
}

.particle-red { background: #ff4757; }
.particle-pink { background: #ff3838; }
.particle-purple { background: #8c7ae6; }
.particle-blue { background: #3742fa; }
.particle-gold { background: #ffa502; }

@keyframes particleExplosion {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.2) translate(var(--dx), var(--dy));
    }
}

/* Morphing Hearts */
.morphing-heart {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 30px;
    color: #ff1744;
    animation: morphHeart 3s ease-in-out forwards;
}

@keyframes morphHeart {
    0% {
        opacity: 1;
        transform: scale(0.5) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: scale(1.5) rotate(90deg);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: scale(1.8) rotate(270deg);
        filter: hue-rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

/* Floating Love Quotes */
.floating-quote {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    background: linear-gradient(135deg, rgba(255,20,147,0.9), rgba(138,43,226,0.9));
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255,20,147,0.3);
    animation: floatingQuote 8s ease-in-out forwards;
    max-width: 200px;
    text-align: center;
}

@keyframes floatingQuote {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-50px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.9);
    }
}

/* Pulsing Heart Background */
.pulsing-heart {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    font-size: 100px;
    color: rgba(255,20,147,0.1);
    animation: heartPulse 4s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
}

/* Laser Beam Effect */
.laser-beam {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #ff00ff, transparent);
    animation: laserBeam 1s ease-out forwards;
}

@keyframes laserBeam {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 100vw;
        opacity: 0;
    }
}

/* Holographic Text Effect */
.holographic {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

@keyframes holographicShift {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(255,0,255,0.5));
    }
    25% {
        background-position: 100% 0%;
        filter: drop-shadow(0 0 10px rgba(0,255,255,0.5));
    }
    50% {
        background-position: 100% 100%;
        filter: drop-shadow(0 0 10px rgba(255,255,0,0.5));
    }
    75% {
        background-position: 0% 100%;
        filter: drop-shadow(0 0 10px rgba(0,255,0,0.5));
    }
}

/* DNA Helix Effect */
.dna-helix {
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    width: 4px;
    height: 4px;
    background: #ff1744;
    border-radius: 50%;
    animation: dnaHelix 4s linear forwards;
}

@keyframes dnaHelix {
    0% {
        transform: translateY(0) translateX(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-400px) translateX(200px) rotateZ(720deg);
        opacity: 0;
    }
}

/* Password Protection Styles */
.password-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.password-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

.password-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* Password Modal Styles */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.password-modal-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.password-modal-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

.password-error {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #ff4444;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer {
    padding: 15px 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff8fab);
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.modal-footer .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.modal-footer .btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Theme Selection Styles */
.theme-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(255, 20, 147, 0.1);
}

.theme-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.theme-option span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

/* Theme Preview Colors */
.theme-default {
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ffc0cb);
}

.theme-romantic {
    background: linear-gradient(135deg, #ff6b9d, #c44569, #f8b500);
}

.theme-ocean {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5, #00c6ff);
}

.theme-sunset {
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #fecfef);
}

.theme-forest {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf, #88d8a3);
}

.theme-galaxy {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
}

/* Theme Variables */
:root[data-theme="romantic"] {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f8b500;
    --bg-primary: linear-gradient(135deg, #1a0e1a 0%, #2d1b2d 50%, #1a0e1a 100%);
}

:root[data-theme="ocean"] {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --accent-color: #00c6ff;
    --bg-primary: linear-gradient(135deg, #0a1a2a 0%, #1a2a3a 50%, #0a1a2a 100%);
}

:root[data-theme="sunset"] {
    --primary-color: #ff9a9e;
    --secondary-color: #fecfef;
    --accent-color: #fad0c4;
    --bg-primary: linear-gradient(135deg, #2a1a1a 0%, #3a2a2a 50%, #2a1a1a 100%);
}

:root[data-theme="forest"] {
    --primary-color: #56ab2f;
    --secondary-color: #a8e6cf;
    --accent-color: #88d8a3;
    --bg-primary: linear-gradient(135deg, #0a1a0a 0%, #1a2a1a 50%, #0a1a0a 100%);
}

:root[data-theme="galaxy"] {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --bg-primary: linear-gradient(135deg, #1a0a2a 0%, #2a1a3a 50%, #1a0a2a 100%);
}

/* Font Selection Styles */
.font-selection {
    margin: 20px 0;
}

.font-selection h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.font-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.font-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.font-option.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), var(--card-bg));
    box-shadow: 0 4px 15px var(--shadow-color);
}

.font-preview {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-option label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.font-option.active label {
    color: var(--accent-color);
    font-weight: 600;
}

/* Font Family Classes */
.font-default {
    font-family: 'Poppins', sans-serif;
}

.font-bengali {
    font-family: 'Kalpurush', 'SolaimanLipi', sans-serif;
}

.font-elegant {
    font-family: 'Playfair Display', serif;
}

.font-handwriting {
    font-family: 'Dancing Script', cursive;
}

.font-modern {
    font-family: 'Roboto', sans-serif;
}

.font-classic {
    font-family: 'Times New Roman', serif;
}

/* View Limit Styles */
.view-limit-section {
    margin: 20px 0;
}

.view-limit-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-limit-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#viewLimitSelect {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#viewLimitSelect:hover {
    border-color: var(--accent-color);
}

#viewLimitSelect:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

#viewLimitSelect option {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 8px;
}

.view-limit-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.view-limit-info i {
    margin-top: 2px;
    color: var(--accent-color);
}

/* View Limit Info Display */
.view-limit-info-display {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 107, 157, 0.05));
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    animation: fadeInUp 0.5s ease;
}

.view-limit-info-display i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.view-limit-info-display span {
    font-weight: 500;
}

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

/* Message Categories */
.message-categories {
    margin-bottom: 25px;
}

.message-categories h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-categories h4 i {
    color: var(--accent-color);
}

.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.category-option {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-option:hover::before {
    left: 100%;
}

.category-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

.category-option.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 107, 157, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.category-icon {
    margin-bottom: 8px;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.category-option.active .category-icon i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.category-option:hover .category-icon i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.category-option label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-option.active label {
    color: var(--accent-color);
    font-weight: 600;
}

.category-option:hover label {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .category-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .category-option {
        padding: 12px 8px;
    }
    
    .category-icon i {
        font-size: 1.3rem;
    }
    
    .category-option label {
         font-size: 0.8rem;
     }
 }

/* Category Info Display */
.category-info-display {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(255, 107, 157, 0.08));
    border: 1px solid rgba(255, 107, 157, 0.4);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    animation: fadeInUp 0.5s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
}

.category-info-display i {
    color: var(--accent-color);
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

.category-info-display span {
    font-weight: 600;
    color: var(--accent-color);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Statistics Dashboard Styles */
.stats-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
}

.stats-header h2 {
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-stats {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-stats:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.stats-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(45deg, #4ecdc4, #7ed6cc);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(45deg, #45b7d1, #74c7e3);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(45deg, #96ceb4, #b5d6c6);
}

.stat-info h3 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-info p {
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.daily-stats {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.daily-stats h3 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

.stats-table {
    overflow-x: auto;
}

#dailyStatsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#dailyStatsTable th,
#dailyStatsTable td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#dailyStatsTable th {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#dailyStatsTable td {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

#dailyStatsTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .stats-dashboard {
        padding: 10px;
    }
    
    .stats-header h2 {
        font-size: 1.5rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-info h3 {
        font-size: 2rem;
    }
    
    .daily-stats {
        padding: 20px;
    }
    
    #dailyStatsTable th,
    #dailyStatsTable td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}