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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    transition: all 0.4s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

#theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.main-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.task-container {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.task-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 24px;
    border-radius: 18px;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.task-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.35);
}

#reload-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#reload-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

#reload-btn:active {
    transform: translateY(-1px);
}

.footer-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease;
}

.footer-links a,
.app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 24px 28px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 130px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 1.05em;
}

.footer-links a:hover,
.app-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.footer-links img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

body.dark-mode .main-box {
    background: rgba(30, 30, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .task-box {
    background: rgba(50, 50, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .task-box:hover {
    background: rgba(60, 60, 90, 0.5);
}

body.dark-mode #reload-btn {
    background: rgba(100, 100, 150, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #reload-btn:hover {
    background: rgba(120, 120, 170, 0.5);
}

body.dark-mode .footer-links a,
body.dark-mode .app-link {
    background: rgba(50, 50, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-links a:hover,
body.dark-mode .app-link:hover {
    background: rgba(70, 70, 100, 0.5);
}

@media (max-width: 768px) {
    .main-box {
        padding: 30px 25px;
    }

    h1 {
        font-size: 1.6em;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a,
    .app-link {
        width: 85px;
        padding: 12px 16px;
    }
}