@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #080b11;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-1: #ff007f;
    --accent-2: #7f00ff;
    --accent-3: #00f0ff;
    --glow-color: rgba(127, 0, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0c101b, #05070c);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-duration: 30s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-3), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 20s;
}

@keyframes float {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(60px, -40px) scale(1.15) rotate(180deg);
    }
    100% {
        transform: translate(-40px, 50px) scale(0.9) rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 1400px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.date-time {
    text-align: right;
}

#current-time {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

#current-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.weather-widget-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.weather-temp {
    font-size: 1.1rem;
    font-weight: 600;
}

.weather-icon {
    font-size: 1.4rem;
    animation: pulse-glow 3s infinite ease-in-out;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px var(--glow-color);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.card-title i {
    color: var(--accent-3);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.pomodoro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.timer-display {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: url(#timer-gradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
}

.btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.03);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

.todo-widget {
    display: flex;
    flex-direction: column;
    height: 380px;
    position: relative;
    z-index: 1;
}

.todo-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.todo-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.todo-input:focus {
    border-color: var(--accent-3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.todo-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.5rem;
}

.todo-list::-webkit-scrollbar {
    width: 6px;
}

.todo-list::-webkit-scrollbar-track {
    background: transparent;
}

.todo-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.todo-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    animation: slide-in 0.3s ease-out;
    transition: all 0.3s;
}

.todo-item.completed {
    opacity: 0.5;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.todo-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.todo-checkbox.checked {
    background: var(--accent-3);
    border-color: var(--accent-3);
}

.todo-checkbox.checked::after {
    content: '✓';
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
}

.todo-text {
    font-size: 0.95rem;
}

.todo-delete {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 1rem;
}

.todo-delete:hover {
    color: #ff4a4a;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.monitor-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.monitor-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.monitor-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.monitor-name {
    font-weight: 500;
    color: var(--text-primary);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
    border-radius: 4px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-fill-alt {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.grid-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-3);
    transition: all 0.3s;
}

.link-item:hover .link-icon {
    background: var(--accent-3);
    color: #000;
}

.link-info {
    display: flex;
    flex-direction: column;
}

.link-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.link-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.customizer-card {
    position: relative;
    z-index: 1;
}

.theme-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.theme-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.15);
}

.theme-purple {
    background: linear-gradient(135deg, #7f00ff, #ff007f);
}

.theme-cyan {
    background: linear-gradient(135deg, #00f0ff, #7f00ff);
}

.theme-emerald {
    background: linear-gradient(135deg, #00ff87, #60efff);
}

.theme-sunset {
    background: linear-gradient(135deg, #ff007f, #ffaa00);
}

.quotes-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    position: relative;
    z-index: 1;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.quote-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (max-width: 1024px) {
    .col-4, .col-5, .col-6, .col-7, .col-8 {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1.25rem;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    .date-time {
        text-align: left;
    }
    .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 {
        grid-column: span 12;
    }
    .grid-links {
        grid-template-columns: 1fr;
    }
}
