:root {
    --primary: #8a2be2;
    --accent: #da70d6;
    --dark-bg: #130f1a;
    --glass: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
}

html, body {
    margin: 0; padding: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #2e004f, var(--dark-bg));
    color: #e0d4fc;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

input, textarea, select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary);
    color: white;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
}

button {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: transform 0.2s;
}
button:active { transform: scale(0.98); }

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.timeline-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0 40px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.timeline-wrapper::-webkit-scrollbar { display: none; }

.timeline-event {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.timeline-event:last-child { margin-right: 20px; }

.timeline-date { color: var(--accent); font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
.timeline-img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-top: 10px; }

.calendar-container { margin: 20px; padding: 15px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-day {
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border-radius: 8px; font-size: 0.8rem;
}
.calendar-day.special {
    background: var(--primary); color: white; font-weight: bold; box-shadow: 0 0 8px var(--primary);
}
.calendar-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 0 100px 0;
}

.flip-card {
    background-color: transparent; width: 100%; aspect-ratio: 1/1.3; perspective: 1000px;
}
.flip-card-inner {
    position: relative; width: 100%; height: 100%; text-align: center;
    transition: transform 0.6s; transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 15px; overflow: hidden;
}
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-card-back {
    background: linear-gradient(135deg, var(--primary), var(--dark-bg));
    color: white; transform: rotateY(180deg);
    display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid var(--accent); font-size: 0.8rem;
}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000; justify-content: center; align-items: center; padding: 20px;
}
.modal-content { width: 100%; max-width: 400px; max-height: 80vh; overflow-y: auto; text-align: center; position: relative; }
.close-modal { position: absolute; top: 10px; right: 20px; font-size: 2rem; color: #fff; cursor: pointer; }

.fab {
    position: fixed; bottom: 25px; right: 25px; background: var(--accent); width: 60px; height: 60px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 30px; color: white; text-decoration: none; box-shadow: 0 4px 20px rgba(218, 112, 214, 0.6); z-index: 100;
}

.date-input-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
    .timeline-event { flex: 0 0 300px; margin-right: 30px; }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .calendar-container { max-width: 500px; margin: 40px auto; }
    .login-container .glass-panel { width: 400px; }
}