:root {
    --bg-color: #08090d;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    
    /* Neon Pastel Accents */
    --accent-pink: #ff7eb3;
    --accent-cyan: #4facfe;
    --accent-purple: #a18cd1;
    
    --widget-bg: rgba(20, 22, 30, 0.45);
    --widget-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Blobs for Edgy Aesthetic */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--accent-pink);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 550px;
    height: 550px;
    background: var(--accent-cyan);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-purple);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 60px) scale(1.2); }
}

.dashboard {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    z-index: 1;
}

/* Classy Dark Glassmorphism */
.widget {
    background: var(--widget-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid var(--widget-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Glass shine effect */
.widget::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
    pointer-events: none;
}

.widget:hover::before {
    left: 150%;
}

.widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.15);
}

/* Header */
.header {
    text-align: center;
    padding: 60px 20px;
}

.header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--accent-pink), var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.header p {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    letter-spacing: 0.5px;
}

h2 i {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.6));
}

/* Buttons */
button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 26px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    color: var(--text-main);
}

button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.icon-btn {
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
}

.icon-btn:hover {
    background: var(--accent-pink);
    color: #fff;
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 126, 179, 0.5);
}

/* Inputs */
input[type="text"], input[type="number"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 22px;
    outline: none;
    font-size: 1.05rem;
    transition: all 0.3s;
    color: #fff;
}

input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.25);
    background: rgba(0, 0, 0, 0.4);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Pomodoro Specifics */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pomodoro {
    display: flex;
    flex-direction: column;
}

.timer-display-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px 0;
}

.timer-display {
    font-size: 6.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ffffff, #a18cd1, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(161, 140, 209, 0.3));
    letter-spacing: -2px;
}

.timer-modes {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    justify-content: center;
}

.timer-modes button.active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.5);
}

.timer-controls {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.timer-controls button {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
    background: rgba(255,255,255,0.03);
}

.timer-controls button:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

/* Settings Panel */
.settings-panel {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.3s;
}

.settings-panel.hidden {
    display: none;
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
}

.setting-group input {
    width: 90px;
    padding: 10px 14px;
    text-align: center;
}

.save-btn {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    margin-top: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.save-btn:hover {
    background: #fff;
    color: var(--accent-purple);
    box-shadow: 0 0 25px rgba(161, 140, 209, 0.6);
}

/* Lists (Todo & Tracker) */
.todo-input, .tracker-input {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.todo-input input, .tracker-input input[type="text"] {
    flex: 1;
}

.tracker-input input[type="number"] {
    width: 100px;
}

ul {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 12px;
}

ul::-webkit-scrollbar { width: 5px; }
ul::-webkit-scrollbar-track { background: transparent; }
ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

li {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-size: 1.1rem;
}

li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.todo-item.completed {
    background: rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.todo-item.completed span {
    text-decoration: line-through;
    color: rgba(255,255,255,0.3);
}

.delete-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    padding: 8px;
    font-size: 1.2rem;
}

.todo-item:hover .delete-btn, .tracker li:hover .delete-btn {
    color: var(--accent-pink);
}

.delete-btn:hover {
    background: rgba(255, 126, 179, 0.15) !important;
    color: var(--accent-pink) !important;
    transform: scale(1.15) !important;
}

.subject-name {
    font-weight: 600;
}

.tracker-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.subject-time {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-cyan);
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.total-study {
    margin-top: 30px;
    text-align: right;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 22px;
    background: rgba(0,0,0,0.25);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.glow-text {
    color: var(--accent-purple);
    text-shadow: 0 0 20px rgba(161, 140, 209, 0.6);
    font-size: 1.6rem;
    font-weight: 800;
    margin-left: 10px;
}

/* Weather */
.weather-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 70px);
    min-height: 240px;
}

.weather-info {
    text-align: center;
}

.weather-temp {
    font-size: 5rem;
    font-weight: 800;
    margin: 15px 0;
    background: linear-gradient(to right, #ffffff, #8e9eab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.weather-desc {
    font-size: 1.4rem;
    text-transform: capitalize;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 1.5px;
}

.weather-icon {
    font-size: 5.5rem;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 25px rgba(161, 140, 209, 0.5));
    margin-bottom: 10px;
}

.weather-loading {
    color: var(--text-muted);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2.8rem;
    }
    .timer-display {
        font-size: 5rem;
    }
}
