:root {
    --bg-color: #0f0f13;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-color: #7b2cbf;
    --accent-gradient: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --day-hover: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Stack children vertically */
    min-height: 100vh;
    background-color: var(--bg-color);
    overflow: hidden;
    position: relative;
    color: var(--text-primary);
}

/* Background Blobs for Atmosphere */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #5a189a;
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #3c096c;
    bottom: -50px;
    right: -50px;
    animation-delay: -2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #03045e;
    top: 40%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Title Styling */
.main-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.main-title h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #ffffff, #c0c0c0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.by-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 5px;
    /* Add space between title and author */
    margin-left: 0;
    text-transform: none;
    letter-spacing: 0.5px;
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

.author-link {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    font-weight: 700;
    transition: all 0.3s ease;
    -webkit-text-fill-color: var(--accent-color);
    /* Override transparent fill */
}

.author-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.author-link:hover {
    color: #9d4edd;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.6);
}

.author-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Calendar Container */
.calendar-wrapper {
    width: 100%;
    max-width: 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styling */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.current-date-info h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(to right, #fff, #b8c6db);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.current-date-info p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.full-date-display {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation Buttons */
.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-navigation button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.calendar-navigation button:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.calendar-navigation #today-btn {
    width: auto;
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Grid System */
.calendar-body {
    position: relative;
}

.weeks,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    list-style: none;
    text-align: center;
}

.weeks {
    margin-bottom: 15px;
}

.weeks li {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.days {
    gap: 8px;
}

.days li {
    position: relative;
    cursor: pointer;
    z-index: 1;
    height: 45px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    margin: 0 auto;
    /* Center in grid cell */
}

/* Day States */
/** Inactive days (prev/next month) */
.days li.inactive {
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/** Hover effect */
.days li:not(.inactive):not(.active):hover {
    background: var(--glass-highlight);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/** Active (Today) */
.days li.active {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.5);
    transform: scale(1.1);
}

.days li.active::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    z-index: -1;
    opacity: 0.5;
}

/* Responsiveness */
@media screen and (max-width: 480px) {
    .calendar-wrapper {
        padding: 20px;
        width: 95%;
        border-radius: 20px;
    }

    .current-date-info h1 {
        font-size: 2rem;
    }

    .days li {
        height: 38px;
        width: 38px;
        font-size: 0.9rem;
    }
}

/* Date Selection Styling */
.date-selection {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.input-group select,
.input-group input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.input-group select {
    flex-grow: 2;
    cursor: pointer;
}

.input-group select option {
    background: #1a1a2e;
    /* Dark background for options since glass doesn't work well there */
    color: #fff;
}

.input-group input {
    width: 60px;
    text-align: center;
}

.input-group input[type="number"]::-webkit-inner-spin-button,
.input-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group #jump-year {
    width: 70px;
}

.input-group button {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.4);
}

.input-group select:focus,
.input-group input:focus {
    border-color: var(--accent-color);
    background: var(--glass-highlight);
}

/* Selected Date Highlight (Distinct from active/today) */
.days li.selected {
    border: 2px solid var(--accent-color);
    background: rgba(123, 44, 191, 0.2);
    color: #fff;
    font-weight: 600;
}