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

body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   Calendar Container
   ============================================ */
.calendar-container {
    position: relative;
    width: 320px;
    perspective: 1000px;
}

.calendar-binding {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 30px;
    background: linear-gradient(180deg, #8b7355 0%, #6b5745 100%);
    border-radius: 8px 8px 0 0;
    z-index: 10;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.calendar-binding::before,
.calendar-binding::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #4a4a4a 0%, #2a2a2a 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(255, 255, 255, 0.2);
}

.calendar-binding::before {
    left: 30px;
}

.calendar-binding::after {
    right: 30px;
}

.calendar-page {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 40px 30px 30px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pageReveal 0.6s ease-out;
}

@keyframes pageReveal {
    from {
        transform: translateY(-20px) rotateX(10deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.calendar-page:hover {
    transform: translateY(-3px);
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
}

.month-indicator {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    position: relative;
}

.month-indicator::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.calendar-body {
    text-align: center;
    margin: 30px 0;
}

.day-number {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: #0047AB;
    text-shadow: 0 4px 8px rgba(0, 71, 171, 0.2);
    animation: numberPulse 0.5s ease-out;
}

@keyframes numberPulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.day-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
    margin-top: 15px;
}

.calendar-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.year-display {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.additional-info {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.page-shadow {
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 100%;
    background: white;
    border-radius: 0 0 10px 10px;
    z-index: 2;
    opacity: 0.5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.previous-page {
    position: absolute;
    bottom: -5px;
    left: 10px;
    right: 10px;
    height: 100%;
    background: #f5f5f5;
    border-radius: 0 0 8px 8px;
    z-index: 1;
    opacity: 0.6;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* ============================================
   STYLE: japanese-modern (Default)
   ============================================ */
.style-japanese-modern .day-number {
    color: #0047AB;
    font-weight: 900;
}

.style-japanese-modern .calendar-page {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

/* ============================================
   STYLE: minimalist-monochrome
   ============================================ */
.style-minimalist-monochrome .calendar-binding {
    background: linear-gradient(180deg, #8b6f47 0%, #6b5737 100%);
    height: 35px;
}

.style-minimalist-monochrome .calendar-page {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.style-minimalist-monochrome .day-number {
    color: #000000;
    font-weight: 300;
    font-size: 140px;
}

.style-minimalist-monochrome .month-indicator {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 10px;
}

.style-minimalist-monochrome .month-indicator::after {
    display: none;
}

.style-minimalist-monochrome .day-name {
    font-weight: 300;
    font-size: 16px;
}

/* ============================================
   STYLE: italian-classic
   ============================================ */
.style-italian-classic .calendar-page {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.style-italian-classic .previous-page {
    background: #f0f0f0;
    opacity: 0.8;
    bottom: -8px;
}

.style-italian-classic .day-number {
    color: #E74C3C;
    font-weight: 900;
    font-size: 160px;
    position: relative;
}

.style-italian-classic .day-number::after {
    content: attr(data-next-day);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    color: #95A5A6;
    opacity: 0.3;
    z-index: -1;
}

.style-italian-classic .month-indicator {
    font-size: 12px;
    color: #E74C3C;
    font-weight: 700;
}

.style-italian-classic .day-name {
    text-transform: uppercase;
    font-weight: 700;
    color: #2c3e50;
    font-size: 20px;
}

/* ============================================
   STYLE: colorful-modular (Enhanced Plastic)
   ============================================ */
.style-colorful-modular .calendar-binding {
    background: transparent;
    height: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    box-shadow: none;
}

.style-colorful-modular .calendar-binding::before,
.style-colorful-modular .calendar-binding::after {
    position: relative;
    top: 0;
    transform: none;
    width: 14px;
    height: 32px;
    border-radius: 7px;
    background-image: linear-gradient(-135deg, #F4F2F0, #AFAFAF);
    box-shadow:
        0 -4.5px 3px #BAB6B3 inset,
        0 0 0.5px 2px #EFEDEE inset,
        0 -5px 0.5px 1px white inset,
        -1.5px 1.5px 2px 1px #888888 inset,
        0 0 1px 1px rgba(47, 0, 0, 0.3),
        0 4px 8px -2px rgba(0, 0, 0, 0.3);
}

.style-colorful-modular .calendar-page {
    background: transparent;
    box-shadow: none;
    padding: 50px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.style-colorful-modular .calendar-header {
    background: linear-gradient(135deg, #9ac182 0%, #87a96b 50%, #75955d 100%);
    padding: 24px;
    border-radius: 16px;
    margin: 0;
    position: relative;
    box-shadow:
        -1px -7px 4px #a8cc8e inset,
        6px 5px 6px #9ac182 inset,
        10px 10px 4px #b5d5a0 inset,
        -4px 5px 4px #91b97a inset,
        -10px 10px 4px #9fc88a inset,
        0 0 1px 1px rgba(47, 60, 40, 0.3),
        0 4px 8px -2px rgba(0, 0, 0, 0.3),
        0 80px 40px -70px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.style-colorful-modular .calendar-header::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

.style-colorful-modular .month-indicator {
    color: rgba(255, 255, 255, 0.95);
    font-size: 28px;
    font-weight: 700;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.style-colorful-modular .month-indicator::after {
    display: none;
}

.style-colorful-modular .calendar-body {
    display: flex;
    gap: 14px;
    margin: 0;
}

.style-colorful-modular .day-number {
    flex: 1;
    background: linear-gradient(135deg, #f9e07f 0%, #f4d35e 50%, #e8c04e 100%);
    padding: 40px 20px;
    border-radius: 16px;
    font-size: 90px;
    color: #E07856;
    margin: 0;
    position: relative;
    box-shadow:
        -1px -7px 4px #fce691 inset,
        6px 5px 6px #f9e07f inset,
        10px 10px 4px #fceba0 inset,
        -4px 5px 4px #f5d96f inset,
        -10px 10px 4px #fae38a inset,
        0 0 1px 1px rgba(130, 90, 30, 0.3),
        0 4px 8px -2px rgba(0, 0, 0, 0.3),
        0 80px 40px -70px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow:
        0 3px 6px rgba(224, 120, 86, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.style-colorful-modular .day-number::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    right: 8px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

.style-colorful-modular .day-number:hover {
    transform: translateY(-2px);
    box-shadow:
        -1px -7px 4px #fce691 inset,
        6px 5px 6px #f9e07f inset,
        10px 10px 4px #fceba0 inset,
        -4px 5px 4px #f5d96f inset,
        -10px 10px 4px #fae38a inset,
        0 0 1px 1px rgba(130, 90, 30, 0.3),
        0 6px 12px -2px rgba(0, 0, 0, 0.4),
        0 100px 50px -70px rgba(0, 0, 0, 0.4);
}

.style-colorful-modular .day-name {
    flex: 1;
    background: linear-gradient(135deg, #a5c3df 0%, #8eaccd 50%, #7a98b8 100%);
    padding: 40px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    margin: 0;
    position: relative;
    box-shadow:
        -1px -7px 4px #b3cee6 inset,
        6px 5px 6px #a5c3df inset,
        10px 10px 4px #bfd7ec inset,
        -4px 5px 4px #97b8d2 inset,
        -10px 10px 4px #adc9e2 inset,
        0 0 1px 1px rgba(47, 60, 80, 0.3),
        0 4px 8px -2px rgba(0, 0, 0, 0.3),
        0 80px 40px -70px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.style-colorful-modular .day-name::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    right: 8px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

.style-colorful-modular .day-name:hover {
    transform: translateY(-2px);
    box-shadow:
        -1px -7px 4px #b3cee6 inset,
        6px 5px 6px #a5c3df inset,
        10px 10px 4px #bfd7ec inset,
        -4px 5px 4px #97b8d2 inset,
        -10px 10px 4px #adc9e2 inset,
        0 0 1px 1px rgba(47, 60, 80, 0.3),
        0 6px 12px -2px rgba(0, 0, 0, 0.4),
        0 100px 50px -70px rgba(0, 0, 0, 0.4);
}

.style-colorful-modular .calendar-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f0f1f3 100%);
    padding: 18px;
    border-radius: 16px;
    border: none;
    position: relative;
    box-shadow:
        -1px -7px 4px #ffffff inset,
        6px 5px 6px #f8f9fa inset,
        10px 10px 4px #ffffff inset,
        -4px 5px 4px #f3f4f6 inset,
        -10px 10px 4px #fafbfc inset,
        0 0 1px 1px rgba(50, 50, 50, 0.2),
        0 4px 8px -2px rgba(0, 0, 0, 0.2),
        0 80px 40px -70px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.style-colorful-modular .calendar-footer::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    right: 6px;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    border-radius: 12px 12px 50% 50%;
    pointer-events: none;
}

.style-colorful-modular .year-display {
    font-weight: 600;
    color: #555;
    position: relative;
}

.style-colorful-modular .additional-info {
    color: #888;
    font-weight: 500;
    position: relative;
}

.style-colorful-modular .page-shadow,
.style-colorful-modular .previous-page {
    display: none;
}

/* ============================================
   STYLE: bold-geometric (Modern Vibrant)
   ============================================ */
.style-bold-geometric .calendar-container {
    width: 320px;
}

.style-bold-geometric .calendar-binding {
    background: transparent;
    border-radius: 0;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.style-bold-geometric .calendar-binding::before,
.style-bold-geometric .calendar-binding::after {
    position: relative;
    top: 0;
    transform: none;
    width: 40px;
    height: 6px;
    border-radius: 3px;
    background: var(--brutalist-color-1, #FFD93D);
    box-shadow: 0 2px 6px var(--brutalist-color-1, rgba(255, 217, 61, 0.4));
}

.style-bold-geometric .calendar-page {
    background: #FFFEF7;
    border: none;
    padding: 30px 25px;
    border-radius: 24px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.style-bold-geometric .calendar-header {
    background: transparent;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.style-bold-geometric .month-indicator {
    background: var(--brutalist-color-2, #B19CD9);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    color: #FFFEF7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 4px 12px var(--brutalist-color-2, rgba(177, 156, 217, 0.4));
    display: inline-block;
}

.style-bold-geometric .month-indicator::after {
    display: none;
}

.style-bold-geometric .calendar-body {
    background: transparent;
    margin: 0;
    position: relative;
}

.style-bold-geometric .day-number {
    background: transparent;
    color: #000;
    font-weight: 900;
    font-size: 140px;
    padding: 0;
    margin: 0;
    border: none;
    line-height: 1;
    text-align: center;
    position: relative;
    text-shadow:
        4px 4px 0 var(--brutalist-color-1, #FFD93D),
        8px 8px 0 var(--brutalist-color-2, #B19CD9);
}

.style-bold-geometric .day-name {
    background: #000;
    color: var(--brutalist-color-3, #FFD93D);
    font-weight: 900;
    font-size: 18px;
    padding: 12px 20px;
    letter-spacing: 2px;
    margin: 20px 0 0 0;
    text-transform: uppercase;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.style-bold-geometric .calendar-footer {
    padding: 20px 0 0 0;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.style-bold-geometric .year-display {
    font-weight: 800;
    font-size: 14px;
    color: #000;
    background: var(--brutalist-color-1, #FFD93D);
    padding: 6px 14px;
    border-radius: 16px;
    box-shadow: 0 3px 8px var(--brutalist-color-1, rgba(255, 217, 61, 0.3));
}

.style-bold-geometric .additional-info {
    font-weight: 700;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.style-bold-geometric .page-shadow {
    background: #E0E0E0;
    opacity: 0.5;
    border-radius: 20px;
    bottom: -6px;
}

.style-bold-geometric .previous-page {
    background: #F0F0F0;
    opacity: 0.7;
    border-radius: 18px;
    bottom: -12px;
}

/* ============================================
   STYLE: designer-toy (3D Render Matte/Kawaii)
   ============================================ */
.style-designer-toy .calendar-container {
    width: 320px;
}

.style-designer-toy .calendar-binding {
    background: transparent;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.style-designer-toy .calendar-binding::before,
.style-designer-toy .calendar-binding::after {
    content: '';
    position: relative;
    top: 0;
    transform: none;
    width: 35px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.style-designer-toy .calendar-page {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: none;
    padding: 40px 30px 35px;
    border-radius: 28px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.style-designer-toy .calendar-page::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 22px;
    pointer-events: none;
}

.style-designer-toy .calendar-header {
    background: transparent;
    margin: 0 0 25px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.style-designer-toy .month-indicator {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: relative;
}

.style-designer-toy .month-indicator::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    right: 8px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 50px;
    pointer-events: none;
}

.style-designer-toy .month-indicator::after {
    display: none;
}

.style-designer-toy .calendar-body {
    background: transparent;
    margin: 0 0 25px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.style-designer-toy .day-number {
    background: transparent;
    color: #1a1a1a;
    font-weight: 900;
    font-size: 160px;
    padding: 0;
    margin: 0;
    border: none;
    line-height: 0.9;
    text-align: center;
    position: relative;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.style-designer-toy .day-name {
    background: linear-gradient(135deg, #e8f0ff 0%, #d4e4ff 100%);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 24px;
    letter-spacing: 2.5px;
    margin: 0;
    text-transform: uppercase;
    border-radius: 50px;
    text-align: center;
    box-shadow:
        0 6px 20px rgba(135, 182, 255, 0.25),
        0 2px 8px rgba(135, 182, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
}

.style-designer-toy .day-name::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    right: 8px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    border-radius: 50px;
    pointer-events: none;
}

.style-designer-toy .calendar-footer {
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.style-designer-toy .year-display {
    flex: 1;
    font-weight: 800;
    font-size: 13px;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 10px 18px;
    border-radius: 50px;
    text-align: center;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
}

.style-designer-toy .year-display::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    right: 6px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    border-radius: 50px;
    pointer-events: none;
}

.style-designer-toy .additional-info {
    flex: 1;
    font-weight: 700;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
}

.style-designer-toy .additional-info::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    right: 6px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    border-radius: 50px;
    pointer-events: none;
}

.style-designer-toy .page-shadow {
    background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
    opacity: 0.6;
    border-radius: 24px;
    bottom: -8px;
}

.style-designer-toy .previous-page {
    background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
    opacity: 0.8;
    border-radius: 22px;
    bottom: -16px;
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.modal-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.modal-close:hover svg {
    color: #1f2937;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 84px);
}

.config-section {
    margin-bottom: 32px;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.style-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.style-card:hover {
    border-color: #0047AB;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.15);
    transform: translateY(-2px);
}

.style-card.active {
    border-color: #0047AB;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.style-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.preview-japanese {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #0047AB;
}

.preview-japanese::after {
    content: '28';
}

.preview-minimalist {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 300;
    color: #000;
}

.preview-minimalist::after {
    content: '28';
}

.preview-italian {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #E74C3C;
}

.preview-italian::after {
    content: '28';
}

.preview-colorful {
    background: linear-gradient(135deg, #f9e07f 0%, #f4d35e 50%, #e8c04e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #E07856;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.preview-colorful::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    border-radius: 6px 6px 50% 50%;
    pointer-events: none;
}

.preview-colorful::after {
    content: '28';
    position: relative;
    text-shadow: 0 2px 4px rgba(224, 120, 86, 0.3);
}

.preview-geometric {
    background: #FFFEF7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
    color: #000;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-geometric::after {
    content: '28';
    text-shadow:
        2px 2px 0 #FFD93D,
        4px 4px 0 #B19CD9;
}

.preview-designer-toy {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
    color: #1a1a1a;
    position: relative;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.preview-designer-toy::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 6px;
    pointer-events: none;
}

.preview-designer-toy::after {
    content: '28';
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.style-name {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

.style-card.active .style-name {
    color: #0047AB;
}

/* Locale Grid */
.locale-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.locale-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.locale-btn:hover {
    border-color: #0047AB;
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.1);
    transform: translateY(-1px);
}

.locale-btn.active {
    border-color: #0047AB;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.locale-flag {
    font-size: 24px;
}

.locale-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.locale-btn.active .locale-name {
    color: #0047AB;
}

/* Toggle Grid */
.toggle-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-option:hover {
    border-color: #0047AB;
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.1);
}

.toggle-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0047AB;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.toggle-option:has(.toggle-checkbox:checked) {
    border-color: #0047AB;
    background: #f0f7ff;
}

.toggle-option:has(.toggle-checkbox:checked) .toggle-label {
    color: #0047AB;
}

/* Background Grid */
.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.bg-preset-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bg-preset-btn:hover {
    border-color: #0047AB;
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.1);
    transform: translateY(-1px);
}

.bg-preset-btn.active {
    border-color: #0047AB;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.bg-color-box {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    display: block;
}

.bg-name {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.bg-preset-btn.active .bg-name {
    color: #0047AB;
}

/* Custom Color Section */
.custom-color-section {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.custom-color-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.custom-color-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.custom-color-picker {
    width: 50px;
    height: 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    padding: 4px;
}

.custom-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.custom-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.custom-color-text {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #374151;
    background: white;
    transition: border-color 0.2s ease;
}

.custom-color-text:focus {
    outline: none;
    border-color: #0047AB;
}

.apply-custom-btn {
    padding: 12px 20px;
    background: #0047AB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.apply-custom-btn:hover {
    background: #003580;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
    transform: translateY(-1px);
}

.apply-custom-btn:active {
    transform: translateY(0);
}

/* URL Container */
.url-container {
    display: flex;
    gap: 8px;
}

.url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #374151;
    background: #f9fafb;
    transition: border-color 0.2s ease;
}

.url-input:focus {
    outline: none;
    border-color: #0047AB;
    background: white;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0047AB;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn:hover {
    background: #003580;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
    transform: translateY(-1px);
}

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

.copy-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    background: #10b981;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Instructions List */
.instructions-list {
    margin: 0;
    padding-left: 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

.instructions-list li {
    margin-bottom: 8px;
}

.instructions-list code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #0047AB;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 400px) {
    .calendar-container {
        width: 280px;
    }

    .day-number {
        font-size: 100px;
    }

    .style-minimalist-monochrome .day-number {
        font-size: 120px;
    }

    .style-italian-classic .day-number {
        font-size: 130px;
    }

    .style-bold-geometric .day-number {
        font-size: 110px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .style-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .locale-grid {
        grid-template-columns: 1fr;
    }
}
