@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=VT323&family=Wix+Madefor+Display:wght@500;700;900&display=swap');

:root {
    --win-pink-light: #ffe6f2;
    --win-pink-main: #ff69b4;
    --win-pink-dark: #d81b60;
    --win-pink-hot: #ff1493;
    
    --win-border-light: #ffffff;
    --win-border-shadow: #85586f;
    --win-border-dark: #4a2c3d;
    
    --win-title-gradient: linear-gradient(90deg, #ff1493 0%, #ff85c0 50%, #ffb6c1 100%);
    --bg-polka: radial-gradient(#ffb6c1 15%, transparent 16%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Wix Madefor Display', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #ffd6eb;
    background-image: 
        radial-gradient(#ff9ec6 18%, transparent 19%),
        linear-gradient(180deg, #ffeef6 0%, #ffd6eb 100%);
    background-size: 16px 16px, 100% 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 12px 8px 40px;
}

.app-container {
    width: 100%;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================
   🪟 РЕТРО ОКНО WINDOWS Y2K
   ========================================== */
.win-window {
    background: #fff0f7;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid var(--win-border-dark);
    border-bottom: 2px solid var(--win-border-dark);
    box-shadow: 2px 2px 0px #00000022, 0 6px 16px rgba(255, 20, 147, 0.15);
    padding: 3px;
    position: relative;
}

.win-titlebar {
    background: var(--win-title-gradient);
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--win-pink-dark);
}

.win-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.win-controls {
    display: flex;
    gap: 3px;
}

.win-btn {
    width: 18px;
    height: 18px;
    background: #ffe3f0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #703652;
    border-bottom: 1px solid #703652;
    font-size: 10px;
    font-weight: 900;
    color: #4a2c3d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.win-btn:active {
    border-top: 1px solid #703652;
    border-left: 1px solid #703652;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

/* Строка меню Word / MSN (File, Edit...) */
.win-menubar {
    display: flex;
    gap: 12px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #7a3e5c;
    border-bottom: 1px solid #ffccd8;
    background: #ffeef6;
}

.win-menubar span {
    cursor: pointer;
}
.win-menubar span:hover {
    color: var(--win-pink-hot);
    text-decoration: underline;
}

.win-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================
   💬 ОБЛАЧКО MSN MESSENGER
   ========================================== */
.msn-bubble-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #ffaec9;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: inset 0 1px 3px rgba(255, 105, 180, 0.1);
}

.msn-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff69b4;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.msn-text {
    font-size: 12px;
    font-weight: 600;
    color: #5c2943;
    line-height: 1.3;
}

.msn-text strong {
    color: var(--win-pink-hot);
}

/* ==========================================
   💖 ГЛАВНОЕ ТАБЛО ЦИКЛА
   ========================================== */
.tracker-screen {
    background: #fff5fa;
    border: 2px inset #ffccd8;
    padding: 12px;
    text-align: center;
    position: relative;
    border-radius: 8px;
}

.sparkle-badge {
    display: inline-block;
    background: #ff1493;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(255, 20, 147, 0.3);
    margin-bottom: 6px;
}

.cycle-big-count {
    font-size: 46px;
    font-weight: 900;
    color: #ff1493;
    text-shadow: 2px 2px 0px #ffffff, 4px 4px 0px #ffb6c1;
    line-height: 1;
    margin: 4px 0;
}

.cycle-subtext {
    font-size: 12px;
    font-weight: 700;
    color: #8c4366;
}

/* Y2K Полосатый индикатор загрузки */
.y2k-progress-box {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #ff85c0;
    height: 18px;
    padding: 2px;
    border-radius: 4px;
}

.y2k-progress-bar {
    height: 100%;
    width: 50%;
    background: repeating-linear-gradient(
        45deg,
        #ff1493,
        #ff1493 8px,
        #ff69b4 8px,
        #ff69b4 16px
    );
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Карточки метрик (овуляция, след. цикл) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.y2k-metric-card {
    background: #ffffff;
    border: 1px solid #ffb6c1;
    padding: 6px 2px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 1px 1px 0px #ffd1dc;
}

.y2k-metric-title {
    font-size: 10px;
    font-weight: 700;
    color: #a8587d;
}

.y2k-metric-value {
    font-size: 12px;
    font-weight: 900;
    color: #d81b60;
    margin-top: 2px;
}

/* ==========================================
   🍬 РОЗОВАЯ 3D КНОПКА (Big Y2K Button)
   ========================================== */
.y2k-action-btn {
    width: 100%;
    background: linear-gradient(180deg, #ff85c0 0%, #ff1493 50%, #c70066 100%);
    border-top: 2px solid #ffb6c1;
    border-left: 2px solid #ffb6c1;
    border-right: 2px solid #5a002e;
    border-bottom: 2px solid #5a002e;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 20, 147, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.y2k-action-btn:active {
    border-top: 2px solid #5a002e;
    border-left: 2px solid #5a002e;
    border-right: 2px solid #ffb6c1;
    border-bottom: 2px solid #ffb6c1;
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ==========================================
   📅 КАЛЕНДАРЬ
   ========================================== */
.cal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffe3f0;
    padding: 4px 8px;
    border: 1px solid #ffaec9;
    border-radius: 4px;
}

.cal-nav-btn {
    background: #ffffff;
    border: 1px solid #ff85c0;
    width: 22px;
    height: 22px;
    font-weight: 900;
    color: #d81b60;
    cursor: pointer;
    border-radius: 3px;
}

.cal-month-name {
    font-size: 12px;
    font-weight: 900;
    color: #d81b60;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-top: 6px;
}

.cal-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: #a8587d;
    padding: 2px 0;
}

.cal-cell {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid #ffd1dc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #4a2c3d;
    cursor: pointer;
}

.cal-cell.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.cal-cell.today {
    border: 2px solid #ff1493;
    font-weight: 900;
    background: #fff0f7;
}

.cal-cell.period {
    background: #ff1493;
    color: #ffffff;
    font-weight: 900;
    border-color: #b80067;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.cal-cell.ovulation {
    background: #ba68c8;
    color: #ffffff;
    font-weight: 900;
    border-color: #7b1fa2;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.cal-cell.selected {
    outline: 2px solid #ff1493;
    background: #ffb6c1 !important;
    font-weight: 900;
    transform: scale(1.1);
}

/* Начальная дата */
.cal-cell.range-start {
    background-color: #ff2d75;
    color: white;
    border-radius: 8px 0 0 8px; /* Скругление только слева */
    font-weight: bold;
}
/* Конечная дата */
.cal-cell.range-end {
    background-color: #ff2d75;
    color: white;
    border-radius: 0 8px 8px 0; /* Скругление только справа */
    font-weight: bold;
}
/* Если выбрана только одна дата (старт и конец совпадают или пока нет конца) */
.cal-cell.range-start:not(.in-range):not(.range-end) {
    border-radius: 8px;
}
/* Промежуточные даты между стартом и концом */
.cal-cell.in-range {
    background-color: rgba(255, 45, 117, 0.2); /* Полупрозрачная заливка */
    border-radius: 0;                          /* Без скруглений, чтобы была сплошная полоска */
    color: #ff2d75;
}


/* ==========================================
   ✨ СИМПТОМЫ (Y2K Pills)
   ========================================== */
.symptoms-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.y2k-pill {
    background: #ffffff;
    border: 1px solid #ff85c0;
    color: #7a2b52;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 1px 1px 0px #ffd1dc;
}

.y2k-pill.active {
    background: #ff1493;
    color: #ffffff;
    border-color: #b80067;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

/* ==========================================
   🌸 ПАНЕЛЬ ПУСК WINDOWS XP Y2K
   ========================================== */
.xp-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #ff85c0 0%, #ff1493 30%, #d81b60 100%);
    border-top: 2px solid #ffb6c1;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    z-index: 100;
}

.xp-start-btn {
    background: linear-gradient(180deg, #ff4081 0%, #c2185b 100%);
    border: 1px solid #ffffff;
    border-radius: 0 8px 8px 0;
    color: #ffffff;
    font-weight: 900;
    font-size: 11px;
    padding: 3px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: inset 0 1px 0 #fff, 1px 1px 2px rgba(0,0,0,0.3);
    cursor: pointer;
}

.xp-clock {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    background: #a8004f;
    border: 1px solid #ff85c0;
    padding: 2px 6px;
    border-radius: 3px;
}