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

body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background-color: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #FFFFFF;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #af7c57;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    padding: 4px;
}

.logo-link {
    color: #af7c57;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #9a6b4a;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: #64748B;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: #af7c57;
}

.auth-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    margin-right: 10px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-quota {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.quota-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.quota-label {
    font-weight: bold;
    color: #333;
}

.quota-number {
    font-weight: bold;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quota-loading {
    display: flex;
    align-items: center;
    gap: 2px;
}

.loading-dot {
    color: #4CAF50;
    animation: loadingDots 1.4s infinite;
    opacity: 0;
}

.loading-dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.buy-credits-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.buy-credits-btn:hover {
    background: #45a049;
}

.login-btn {
    background-color: #af7c57;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background-color: #9a6b4a;
    transform: translateY(-1px);
}

/* Main Content Styles */
main {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.container {
    max-width: 800px;
    width: 90%;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1E293B;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #64748B;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed #E2E8F0;
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.upload-area:hover {
    border-color: #af7c57;
    background-color: #F8FAFC;
}

.upload-area.disabled {
    opacity: 0.6;
    pointer-events: none;
    background-color: #F1F5F9;
}

.upload-area.disabled .select-file-btn {
    background-color: #E2E8F0;
    cursor: not-allowed;
}

.upload-area.disabled:hover {
    border-color: #E2E8F0;
    background-color: #F1F5F9;
}

.upload-area.disabled .login-hint {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.select-file-btn {
    background-color: #F1F5F9;
    color: #1E293B;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.select-file-btn:hover {
    background-color: #E2E8F0;
    transform: translateY(-1px);
}

.file-name {
    margin-top: 1rem;
    color: #af7c57;
    font-weight: 500;
}

/* Key Selection Styles */
.key-selection {
    margin: 2rem 0;
}

.key-selection label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1E293B;
    font-weight: 500;
}

.key-selection select {
    background-color: #FFFFFF;
    color: #1E293B;
    border: 1px solid #E2E8F0;
    padding: 0.8rem;
    border-radius: 6px;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.key-selection select:hover {
    border-color: #af7c57;
}

/* Start Button Styles */
.start-btn {
    background-color: #af7c57;
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    box-shadow: 0 2px 4px rgba(175, 124, 87, 0.2);
}

.start-btn:hover:not(:disabled) {
    background-color: #9a6b4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(175, 124, 87, 0.3);
}

.start-btn:disabled {
    background-color: #CBD5E1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer Styles */
footer {
    background-color: #FFFFFF;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: #64748B;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        display: flex;
        gap: 1rem;
    }

    nav a {
        margin-left: 0;
    }

    h2 {
        font-size: 2rem;
    }
}

.login-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #e8f5e9;
    border-radius: 6px;
    color: #2e7d32;
}

.hint-icon {
    font-size: 1.2rem;
}

.login-hint p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
} 