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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Christmas Dynamic Gradient Background */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        #1a4c80 0%,
        #0f3460 25%,
        #1a5490 50%,
        #2d5016 75%,
        #0d2818 100%
    );
    background-size: 400% 400%;
    animation: christmasGradientShift 12s ease infinite;
    z-index: -3;
}

@keyframes christmasGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 25%; }
    50% { background-position: 100% 75%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
}

/* Christmas Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    animation: christmasFloat 8s ease-in-out infinite;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.shape-1 {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(139, 0, 0, 0.2));
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.shape-2 {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.3), rgba(34, 139, 34, 0.2));
    box-shadow: 0 0 20px rgba(0, 128, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.shape-3 {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(240, 248, 255, 0.2));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
    animation: snowflakeRotate 8s linear infinite;
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.shape-4 {
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(240, 248, 255, 0.2));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: snowflakeRotate 6s linear infinite;
    width: 40px;
    height: 40px;
    top: 50%;
    right: 10%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.shape-5 {
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(240, 248, 255, 0.2));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: snowflakeRotate 10s linear infinite;
    transform: rotate(45deg);
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 9s;
}

@keyframes christmasFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(1.1);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-10px) rotate(270deg) scale(0.95);
        opacity: 1;
    }
}

@keyframes snowflakeRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Christmas String Lights */
.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.light-string {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
}

.light-string::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(101, 67, 33, 0.9) 5%,
        rgba(101, 67, 33, 0.9) 95%,
        transparent 100%
    );
    transform: translateY(-50%);
    z-index: -1;
}

.string-top {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    transform: rotate(-1deg);
}

.light-bulb {
    width: 14px;
    height: 18px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: twinkle 3s ease-in-out infinite;
    filter: brightness(1.2);
}

.light-bulb.red {
    background: radial-gradient(circle at 30% 30%, #FF6B6B, #DC143C, #8B0000);
    box-shadow:
        0 0 10px #FF6B6B,
        0 0 20px #DC143C,
        0 0 30px rgba(220, 20, 60, 0.5);
    animation-delay: 0s;
}

.light-bulb.green {
    background: radial-gradient(circle at 30% 30%, #90EE90, #32CD32, #228B22);
    box-shadow:
        0 0 10px #90EE90,
        0 0 20px #32CD32,
        0 0 30px rgba(50, 205, 50, 0.5);
    animation-delay: 0.5s;
}

.light-bulb.blue {
    background: radial-gradient(circle at 30% 30%, #87CEEB, #4169E1, #1E90FF);
    box-shadow:
        0 0 10px #87CEEB,
        0 0 20px #4169E1,
        0 0 30px rgba(65, 105, 225, 0.5);
    animation-delay: 1s;
}

.light-bulb.yellow {
    background: radial-gradient(circle at 30% 30%, #FFFF99, #FFD700, #FFA500);
    box-shadow:
        0 0 10px #FFFF99,
        0 0 20px #FFD700,
        0 0 30px rgba(255, 215, 0, 0.5);
    animation-delay: 1.5s;
}

.light-bulb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    background: linear-gradient(135deg, #C0C0C0, #808080);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.light-bulb::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 5px;
    height: 7px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), transparent);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1.2);
    }
    25% {
        opacity: 0.7;
        transform: scale(0.95);
        filter: brightness(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: brightness(1.5);
    }
    75% {
        opacity: 0.8;
        transform: scale(0.98);
        filter: brightness(1.1);
    }
}

/* Screen and App */
.screen {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

#mainScreen {
    position: relative;
}

.hidden {
    display: none !important;
}

#app {
    position: relative;
    z-index: 1;
}

/* Login Container */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Glowing Title */
.glowing-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg,
        #FFD700 0%,
        #FFF 25%,
        #DC143C 50%,
        #FFF 75%,
        #228B22 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 20px rgba(220, 20, 60, 0.4);
    animation: christmasTitleGlow 3s ease-in-out infinite alternate;
    margin-bottom: 2rem;
    text-align: center;
}

@keyframes christmasTitleGlow {
    from {
        text-shadow:
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(220, 20, 60, 0.4),
            0 0 40px rgba(34, 139, 34, 0.3);
    }
    to {
        text-shadow:
            0 0 40px rgba(255, 215, 0, 0.9),
            0 0 60px rgba(220, 20, 60, 0.6),
            0 0 80px rgba(34, 139, 34, 0.5);
    }
}

/* Glass Form */
.glass-form {
    background: linear-gradient(135deg,
        rgba(220, 20, 60, 0.15) 0%,
        rgba(0, 100, 0, 0.12) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(0, 100, 0, 0.12) 75%,
        rgba(220, 20, 60, 0.15) 100%
    );
    backdrop-filter: blur(120px) saturate(0.7);
    -webkit-backdrop-filter: blur(80px) saturate(0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    width: 400px;
    max-width: 90vw;
    box-shadow:
        0 12px 40px 0 rgba(220, 20, 60, 0.2),
        0 8px 32px 0 rgba(0, 100, 0, 0.15),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.15),
        rgba(255, 255, 255, 0.2),
        rgba(255, 215, 0, 0.15),
        transparent
    );
    animation: christmasShimmer 4s ease-in-out infinite;
}

@keyframes christmasShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(220, 20, 60, 0.08) 50%,
        rgba(0, 100, 0, 0.08) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.input-container input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(220, 20, 60, 0.2),
        inset 0 2px 8px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 215, 0, 0.1) 50%,
        rgba(220, 20, 60, 0.1) 100%
    );
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: linear-gradient(45deg,
        rgba(255, 215, 0, 0.1),
        rgba(255, 255, 255, 0.15),
        rgba(220, 20, 60, 0.1)
    );
    padding: 0 0.5rem;
    border-radius: 8px;
}

.input-container input:focus + label,
.input-container input:valid + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 5px rgba(220, 20, 60, 0.5);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg,
        #FFD700 0%,
        #DC143C 50%,
        #228B22 100%
    );
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.input-container input:focus ~ .input-highlight {
    width: 100%;
    left: 0;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg,
        #DC143C 0%,
        #B22222 25%,
        #228B22 50%,
        #006400 75%,
        #DC143C 100%
    );
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow:
        0 8px 25px rgba(220, 20, 60, 0.4),
        0 4px 15px rgba(34, 139, 34, 0.3),
        inset 0 2px 4px rgba(255, 215, 0, 0.2);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(220, 20, 60, 0.6),
        0 10px 25px rgba(34, 139, 34, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

.login-button:active {
    transform: translateY(-1px);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.4),
        rgba(255, 255, 255, 0.3),
        rgba(255, 215, 0, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.login-button:hover .button-glow {
    left: 100%;
}

/* Error Message */
.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.error-message.show,
.error-message:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Header */
.glass-header {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 90;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FFD700, #FFF, #DC143C);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.header-title:hover {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(220, 20, 60, 0.5);
    transform: scale(1.05);
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    padding: 10px 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
}

.nav-btn.active {
    background: linear-gradient(45deg, #DC143C, #228B22);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.nav-btn:not(.disabled):hover {
    background: linear-gradient(45deg, #DC143C, #B22222);
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
}

.nav-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.nav-btn.disabled::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.nav-btn.disabled:hover::after {
    opacity: 1;
}

.logout-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 8px;
    background: rgba(255, 107, 107, 0.2);
    color: white;
    cursor: pointer;
    margin-left: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #DC143C);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Calendar View */
.view {
    padding: 40px 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Calendar Day Cards */
.calendar-day {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(220, 20, 60, 0.1) 50%,
        rgba(0, 100, 0, 0.1) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 2px 8px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

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

.calendar-day:hover::before {
    left: 100%;
}

.calendar-day:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #FFD700;
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.3),
        0 10px 30px rgba(220, 20, 60, 0.2),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.calendar-day.locked {
    background: linear-gradient(135deg,
        rgba(100, 100, 100, 0.3) 0%,
        rgba(80, 80, 80, 0.2) 100%
    );
    border-color: rgba(150, 150, 150, 0.3);
    cursor: not-allowed;
}

.calendar-day.locked:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.calendar-day.opened {
    background: linear-gradient(135deg,
        rgba(34, 139, 34, 0.4) 0%,
        rgba(0, 128, 0, 0.3) 50%,
        rgba(34, 139, 34, 0.4) 100%
    );
    border-color: #32CD32;
}

.calendar-day.opened:hover {
    box-shadow:
        0 15px 40px rgba(50, 205, 50, 0.4),
        0 10px 30px rgba(34, 139, 34, 0.3);
}

.day-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FFD700, #FFF);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 8px;
}

.calendar-day.locked .day-number {
    background: linear-gradient(45deg, #888, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
}

.calendar-day.opened .day-number {
    background: linear-gradient(45deg, #90EE90, #FFF);
    background-clip: text;
    -webkit-background-clip: text;
}

.day-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Chat Container */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(220, 20, 60, 0.08) 50%,
        rgba(0, 100, 0, 0.08) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chat-config {
    padding: 20px;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chat-config input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.chat-config input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.chat-config input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-config button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #DC143C, #228B22);
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chat-config button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #DC143C, #228B22);
    border-radius: 4px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 80%;
    backdrop-filter: blur(10px);
}

.message.user {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: white;
    margin-left: auto;
    text-align: right;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.message.bot {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input {
    padding: 20px;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #DC143C, #228B22);
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
}

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

.modal-content {
    background: linear-gradient(135deg,
        rgba(30, 30, 30, 0.95) 0%,
        rgba(20, 20, 20, 0.95) 100%
    );
    border: 2px solid rgba(255, 215, 0, 0.4);
    padding: 25px;
    border-radius: 20px;
    max-width: 95%;
    max-height: 95%;
    overflow: auto;
    position: relative;
    min-width: 800px;
    min-height: 600px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.2);
    color: white;
}

.modal-content h2 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.modal-content h3 {
    color: #FFF;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: #FFD700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.media-content {
    text-align: center;
}

.media-content img, .media-content video {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 80vh;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .glass-header {
        padding: 15px 20px;
    }

    .header-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        min-width: 90vw;
        min-height: 80vh;
        padding: 15px;
        max-width: 95vw;
        max-height: 95vh;
    }

    .media-content img, .media-content video {
        width: 100%;
        height: auto;
        min-height: 300px;
        max-height: 70vh;
    }

    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .calendar-day {
        min-height: 100px;
        padding: 15px 10px;
    }

    .day-number {
        font-size: 1.8rem;
    }

    .glass-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .header-title {
        font-size: 1.3rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logout-btn {
        margin-left: 0;
    }

    .glowing-title {
        font-size: 1.8rem;
    }

    .glass-form {
        padding: 1.5rem;
    }

    .light-bulb {
        width: 10px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 12px 8px;
        border-radius: 15px;
    }

    .day-number {
        font-size: 1.5rem;
    }

    .day-status {
        font-size: 0.75rem;
    }

    .view {
        padding: 20px 10px;
    }

    .glowing-title {
        font-size: 1.5rem;
    }

    .glass-form {
        padding: 1rem;
        width: 95vw;
    }

    .input-container input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .login-button {
        padding: 0.8rem;
        font-size: 1rem;
    }
}
