* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0d14;
    color: #f0f3f8;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 75px 130px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 190px 80px, rgba(255,255,255,0.5), transparent);
    background-size: 250px 250px;
    animation: twinkle 6s infinite alternate ease-in-out;
}

.nebula {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 130%;
    height: 130%;
    z-index: -1;
    background: radial-gradient(circle at 50% 30%, rgba(108, 99, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes twinkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.container {
    width: 90%;
    max-width: 650px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 12px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #a5a1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle, .archive-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.moon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(108, 99, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Glassmorphism Form Container */
.glass-form {
    width: 100%;
    background: rgba(22, 27, 34, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Inputs */
input[type="text"], textarea, input[type="date"] {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.15);
}

textarea {
    height: 140px;
    resize: none;
    margin-top: 16px;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 24px 0 12px 4px;
}

/* Custom Mood Selector Grid */
.mood-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.chip.active {
    background: rgba(108, 99, 255, 0.15);
    border-color: #6c63ff;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.2);
}

/* Subtle Style for Native Date Picker */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* CTA Buttons */
.submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: linear-gradient(135deg, #6c63ff 0%, #5248ff 100%);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.2);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(108, 99, 255, 0.35);
}

.nav-btn {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 30px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.nav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Archive Layout Specifics */
.archive-container {
    max-width: 800px;
}

.archive-container h1 {
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.search-wrapper {
    width: 100%;
    margin: 32px 0 16px 0;
}

.capsules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

/* Premium Card Design */
.card {
    background: rgba(22, 27, 34, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.card-mood {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 16px;
}

.card-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}

.card-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    flex-grow: 1;
    margin-bottom: 20px;
}

.locked-text {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.delete-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 0.8);
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 1);
    border-color: rgba(239, 68, 68, 0.4);
}

footer {
    margin-top: 40px;
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
