/* ===== Variables - Google Drive Style ===== */
:root {
    --primary-50: #e8f0fe;
    --primary-100: #d2e3fc;
    --primary-200: #aecbfa;
    --primary-400: #669df6;
    --primary-500: #4285f4;
    --primary-600: #1a73e8;
    --primary-700: #1967d2;
    
    --green-50: #e6f4ea;
    --green-500: #34a853;
    --green-600: #1e8e3e;
    
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-400: #bdc1c6;
    --gray-500: #9aa0a6;
    --gray-600: #80868b;
    --gray-700: #5f6368;
    --gray-800: #3c4043;
    --gray-900: #202124;
    
    --white: #ffffff;
    --shadow-1: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-2: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
    --shadow-3: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --shadow-4: 0 2px 3px 0 rgba(60,64,67,0.3), 0 6px 10px 4px rgba(60,64,67,0.15);
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray-800);
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 480px;
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 22px;
    font-weight: 400;
    color: var(--gray-700);
    letter-spacing: -0.5px;
}

/* ===== Card ===== */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-2);
    border: 1px solid var(--gray-200);
}

/* ===== File Info ===== */
.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 48px;
    height: 48px;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 12px;
    color: var(--gray-600);
}

/* ===== Progress Section ===== */
.progress-section {
    margin-bottom: 20px;
}

.progress-bar-container {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-500);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--gray-700);
    text-align: center;
}

/* ===== Checklist ===== */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.check-item.active {
    opacity: 1;
}

.check-item.completed {
    opacity: 1;
}

.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    flex-shrink: 0;
}

.check-icon svg {
    width: 20px;
    height: 20px;
}

.check-icon .checkmark {
    display: none;
}

.check-icon .spinner {
    display: none;
}

.check-item.active .check-icon .spinner {
    display: block;
    animation: spin 1s linear infinite;
    color: var(--primary-500);
}

.check-item.completed .check-icon {
    color: var(--green-500);
}

.check-item.completed .check-icon .spinner {
    display: none;
}

.check-item.completed .check-icon .checkmark {
    display: block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.check-text {
    font-size: 14px;
    color: var(--gray-700);
}

.check-item.completed .check-text {
    color: var(--gray-900);
}

/* ===== Success Message ===== */
.success-message {
    display: none;
    text-align: center;
    padding: 16px 0;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: 50%;
    color: var(--green-500);
    margin: 0 auto 16px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-message h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.success-message p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--white);
    color: var(--primary-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-300);
}

.btn-download:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

/* ===== Homepage ===== */
.homepage-content {
    text-align: center;
    padding: 16px 0;
}

.homepage-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.homepage-icon svg {
    width: 72px;
    height: 72px;
}

.homepage-content h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.homepage-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 400;
    border: 1px solid var(--gray-200);
}

.feature svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    margin-top: 24px;
}

.footer p {
    font-size: 12px;
    color: var(--gray-600);
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

.footer-links a {
    font-size: 12px;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-600);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .file-name {
        font-size: 14px;
    }
}
