/* ========================================
   QuantaQ - Main Stylesheet
   ======================================== */

/* Base Styles */
body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.lang-zh .en-text { display: none !important; }
body.lang-en .zh-text { display: none !important; }

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Mesh Background */
.bg-mesh {
    background-color: #ffffff;
    background-image: 
        linear-gradient(to right, #f1f5f9 1px, transparent 1px),
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
}

/* Input Fields */
.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    color: #64748b;
    border-color: #e2e8f0;
}

.input-field:disabled:hover {
    border-color: #e2e8f0;
}

/* Buttons */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-success {
    background-color: #4CAF50;
    color: white;
    transition: all 0.3s ease;
}

.btn-success:hover {
    filter: brightness(1.1);
}

.btn-info {
    background-color: #2563eb;
    color: white;
    transition: all 0.3s ease;
}

.btn-info:hover {
    filter: brightness(1.1);
}

.btn-warning {
    background-color: #FF9800;
    color: white;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    filter: brightness(1.1);
}

/* Login button disabled state - light blue */
#login-form button[type="submit"]:disabled {
    background-color: #60a5fa;
    cursor: not-allowed;
}

#login-form button[type="submit"]:disabled:hover {
    background-color: #60a5fa;
}

/* Input Error State */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Login Card */
.login-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Tab Buttons */
.tab-button {
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom: 2px solid #2563eb;
    color: #2563eb;
}

.tab-button:disabled,
.tab-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Captcha */
.captcha-image {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    user-select: none;
}

/* ========================================
   Dashboard Styles
   ======================================== */

/* Sidebar */
.sidebar {
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-sidebar {
    transform: translateX(-100%);
}

.mobile-sidebar.open {
    transform: translateX(0);
}

/* Task Cards */
.task-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.report-card {
    min-height: 172px;
}

.report-card-meta {
    min-width: 220px;
}

.report-card-stage {
    white-space: nowrap;
}

/* Progress Bar */
.progress-bar {
    transition: width 0.5s ease;
}

/* AI Assistant */
.ai-assistant {
    transition: all 0.3s ease;
}

.ai-message {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Stage Badges */
.stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.stage-badge-progress {
    background-color: #dbeafe;
    color: #2563eb;
}

.stage-badge-completed {
    background-color: #E8F5E9;
    color: #388E3C;
}

.stage-badge-pending {
    background-color: #FFF3E0;
    color: #F57C00;
}

/* Notifications */
.notification {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-info {
    background-color: #dbeafe;
    border-left: 4px solid #2563eb;
}

.notification-success {
    background-color: #E8F5E9;
    border-left: 4px solid #4CAF50;
}

.notification-warning {
    background-color: #FFF3E0;
    border-left: 4px solid #FF9800;
}

.notification-error {
    background-color: #FFEBEE;
    border-left: 4px solid #F44336;
}

/* Responsive */
@media (min-width: 1024px) {
    .mobile-sidebar {
        transform: translateX(0);
    }
}
