@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --primary-color: #4A6FFF;
    --primary-light: #7A9DFF;
    --primary-dark: #3A5BFF;
    --secondary-color: #FF7A5A;
    --secondary-light: #FFA58A;
    --accent-color: #5ACEFF;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --bg-light: #F8FAFF;
    --bg-white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    background-attachment: fixed;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234A6FFF' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    padding: 2rem 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

header h1 {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

header h1 i {
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.control-panel {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.loading-indicator {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(90, 206, 255, 0.2);
}

.loading-indicator p {
    color: var(--primary-color);
    font-weight: 500;
}

.cloud-loading {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    position: relative;
    animation: cloudFloat 2s infinite ease-in-out;
    box-shadow: 0 8px 15px rgba(90, 206, 255, 0.3);
}

.cloud-loading::before,
.cloud-loading::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
}

.cloud-loading::before {
    width: 25px;
    height: 25px;
    top: -10px;
    left: 10px;
}

.cloud-loading::after {
    width: 20px;
    height: 20px;
    top: -8px;
    right: 15px;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cloud-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(90, 206, 255, 0.15);
    border-radius: 50%;
    animation: particleFloat 3s infinite ease-in-out;
    box-shadow: 0 4px 8px rgba(90, 206, 255, 0.1);
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.cloud-particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.cloud-particle:nth-child(2) {
    top: 40%;
    right: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 1s;
    animation-duration: 9s;
}

.cloud-particle:nth-child(3) {
    bottom: 10%;
    left: 30%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 8s;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translate(100px, -50px) rotate(360deg); opacity: 0; }
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(90, 206, 255, 0.2);
}

.checklist-header h2 {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-header h2 i {
    color: var(--accent-color);
    font-size: 1.6rem;
}

.progress-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(90, 206, 255, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(90, 206, 255, 0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.progress-percentage {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(90, 206, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 111, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.checklist-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    background: var(--bg-white);
    border: 1px solid rgba(90, 206, 255, 0.2);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.action-btn:hover {
    background: rgba(90, 206, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--accent-color);
}

.action-btn:active {
    transform: translateY(0);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(74, 111, 255, 0.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.primary-btn i {
    font-size: 1.3rem;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(74, 111, 255, 0.35);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s;
}

.primary-btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

.checklist-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(90, 206, 255, 0.1);
}

.checklist-container:hover {
    box-shadow: 0 15px 40px rgba(74, 111, 255, 0.1);
}

.hidden {
    display: none;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.category {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 206, 255, 0.15);
    animation: fadeIn 0.6s ease-out;
    box-shadow: var(--shadow-md);
    width: 320px;
    position: relative;
    overflow: hidden;
}

.category:nth-child(odd) {
    transform: rotate(-1deg);
}

.category:nth-child(even) {
    transform: rotate(1deg);
}

.category:hover {
    transform: translateY(-5px) rotate(0);
    box-shadow: var(--shadow-lg);
    border-color: rgba(90, 206, 255, 0.3);
}

.category::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(90, 206, 255, 0.1) 50%);
    border-radius: 0 0 0 60px;
}

.category h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.category h3::before {
    font-family: 'Remixicon';
    content: '\ea9a';
    font-size: 1.4rem;
    color: var(--accent-color);
    background: rgba(90, 206, 255, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.category:nth-child(2) h3::before { content: '\f0f9'; }
.category:nth-child(3) h3::before { content: '\f0c3'; }
.category:nth-child(4) h3::before { content: '\f1b3'; }
.category:nth-child(5) h3::before { content: '\f1e0'; }
.category:nth-child(6) h3::before { content: '\f0e1'; }
.category:nth-child(7) h3::before { content: '\f0a0'; }

.category ul {
    list-style: none;
}

.category li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(90, 206, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.category li:hover {
    padding-left: 8px;
    color: var(--primary-color);
}

.category li::before {
    content: '•';
    color: var(--accent-color);
    font-size: 1.8em;
    line-height: 0;
}

.category li:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-secondary);
    padding: 1.5rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    border-radius: 2px;
    opacity: 0.5;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .control-panel, .header-decoration, .action-btn {
        display: none;
    }

    .checklist-container {
        box-shadow: none;
        border: none;
    }

    .category {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        transform: none !important;
        border: 1px solid #ddd;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1rem;
    }

    .checklist-container {
        padding: 1.5rem;
    }

    .category {
        width: 100%;
        transform: none !important;
    }

    .primary-btn {
        padding: 14px 28px;
    }
}