* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial;
    background:
        linear-gradient(rgba(8, 28, 14, 0.5), rgba(8, 28, 14, 0.5)),
        url('https://static.vecteezy.com/system/resources/previews/072/133/246/non_2x/a-misty-forest-path-winds-through-lush-green-vegetation-and-moss-covered-rocks-with-tall-trees-in-the-background-free-photo.jpeg') center / cover fixed no-repeat;
    background-color: #14361d;
    transition: 0.3s;
}

.container {
    display: flex;
    min-height: 100vh;
}

.left {
    flex: 1;
    padding: 20px;
}

.panel {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 30px rgba(4, 20, 8, 0.16);
    padding: 20px;
    border-radius: 10px;
}

.right {
    width: 320px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 30px rgba(4, 20, 8, 0.16);
    padding: 15px;
    overflow-y: auto;
}

/* calendar */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    font-size: 11px;
}

.weekday {
    padding: 4px 0;
    text-align: center;
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 12px;
}

.day {
    padding: 6px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #17341f;
    font-weight: 700;
}

.day:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(209, 250, 229, 0.14));
}

.selected {
    background: #22c55e;
    color: white;
}

.has-record {
    background: linear-gradient(to bottom, rgba(254, 226, 226, 0.26), rgba(254, 202, 202, 0.12));
}

.has-record.selected {
    background: #22c55e;
    color: white;
}


.special-day {
    background: linear-gradient(to bottom, rgba(220, 252, 231, 0.82), rgba(187, 247, 208, 0.58));
    border-color: rgba(134, 239, 172, 0.36);
    color: #991b1b;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(34, 94, 52, 0.12);
}

.special-day:hover {
    background: linear-gradient(to bottom, rgba(240, 253, 244, 0.9), rgba(187, 247, 208, 0.66));
}

.special-day .weed,
.special-day .water,
.special-day .count-badge {
    color: #991b1b;
    font-weight: 800;
}

.count-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 10px;
    text-align: right;
}

.weed { color: green; }
.water { color: blue; }

/* records */
.records-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.records-header h3 {
    margin: 0;
}

.weekly-summary {
    font-size: 13px;
    color: #17341f;
    text-align: right;
}

.record {
    margin-top: 8px;
    padding: 8px;
    background: #f0fdf4;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.delete {
    cursor: pointer;
    color: red;
}

/* button */
button {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 32%, rgba(255, 255, 255, 0) 33%),
        linear-gradient(to bottom, rgba(22, 163, 74, 0.96), rgba(8, 95, 39, 0.92));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(187, 247, 208, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 30px rgba(3, 22, 9, 0.42);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.16) 34%, rgba(255, 255, 255, 0) 35%),
        linear-gradient(to bottom, rgba(34, 197, 94, 0.98), rgba(10, 110, 46, 0.95));
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 20px 38px rgba(3, 22, 9, 0.5);
}

button:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(3, 22, 9, 0.28);
}

select,
input[type="text"],
input[type="email"],
input[type="number"] {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #17341f;
    border-radius: 8px;
    padding: 7px 10px;
}

.timer {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(to bottom, rgba(20, 83, 45, 0.82), rgba(21, 128, 61, 0.48));
    color: #4ade80;
    font-family: Arial;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.timer-number {
    color: #fff;
}

.timer.no-records {
    color: white !important;
    text-shadow: 1px 1px 3px black;
    font-weight: bold;
}

#weedTimer.no-records {
    background-image: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('https://upload.wikimedia.org/wikipedia/commons/5/5e/Bob_Marley_1977_press_photo.jpg');
}

#waterTimer.no-records {
    background-image: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('https://upload.wikimedia.org/wikipedia/commons/b/b1/Billy_Herrington.jpg');
}

/* 🌗 theme toggle */
.theme-btn, .account-btn {
    position: fixed;
    top: 15px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.34));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    cursor: pointer;
    z-index: 999;
    font-size: 20px;
    line-height: 1;
}

.theme-btn {
    right: 15px;
}

.account-btn {
    right: 65px;
}

.account-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5Zm0 2c-4.418 0-8 2.239-8 5v1h16v-1c0-2.761-3.582-5-8-5Z'/%3E%3C/svg%3E");
}

/* Account Page */
#accountPage {
    display: none;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

#accountPage .panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 🌙 dark mode */
.dark body {
    background:
        linear-gradient(rgba(8, 12, 22, 0.52), rgba(8, 12, 22, 0.52)),
        url("https://c4.wallpaperflare.com/wallpaper/490/464/59/perfect-snow-wallpaper-preview.jpg") center / cover fixed no-repeat;
    background-color: #111827;
}

.dark .panel,
.dark .right {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.32));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.16);
    color: #eee;
}

.dark select,
.dark input {
    color: #ffffff;
    background: linear-gradient(to bottom, rgba(6, 24, 18, 0.42), rgba(6, 24, 18, 0.18));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.16);
}

.dark select option {
    background: #000000;
    color: #ffffff;
}

.dark .day {
    background: linear-gradient(to bottom, rgba(6, 24, 18, 0.42), rgba(6, 24, 18, 0.18));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dark .day:hover {
    background: linear-gradient(to bottom, rgba(12, 36, 27, 0.5), rgba(12, 36, 27, 0.24));
}

.dark .weekday {
    color: #4ade80;
}

.dark .selected {
    background: #4ade80;
    color: #052e16;
}

.dark .has-record {
    background: #7f1d1d;
}

.dark .has-record.selected {
    background: #4ade80;
    color: #052e16;
}


.dark .special-day {
    background: linear-gradient(to bottom, rgba(34, 197, 94, 0.95), rgba(21, 128, 61, 0.95));
    color: #f0fdf4;
}

.dark .record {
    background: #1f2937;
}

.dark .weekly-summary {
    color: #d1fae5;
}

.dark .timer {
    background: linear-gradient(to bottom, rgba(6, 24, 18, 0.74), rgba(6, 24, 18, 0.48));
    color: #22c55e;
}
