/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(59,130,246,0.15)"/><circle cx="75" cy="75" r="1" fill="rgba(59,130,246,0.15)"/><circle cx="50" cy="10" r="0.5" fill="rgba(59,130,246,0.08)"/><circle cx="10" cy="60" r="0.5" fill="rgba(59,130,246,0.08)"/><circle cx="90" cy="40" r="0.5" fill="rgba(59,130,246,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
}

.login-form-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-form-container > p {
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

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

.form-group input::placeholder {
    color: #94a3b8;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.login-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.3);
}

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

.login-btn i {
    font-size: 1rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-toggle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-toggle a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.login-error i {
    font-size: 1rem;
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-form-container h2 {
        font-size: 1.5rem;
    }
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header p {
    font-size: 0.875rem;
    opacity: 0.7;
    font-weight: 400;
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(96, 165, 250, 0.5);
}

.nav-item.active {
    background: rgba(96, 165, 250, 0.1);
    border-left-color: #60a5fa;
    color: #60a5fa;
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    max-width: calc(100vw - 280px);
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 400;
}

/* Setup Container */
.setup-container {
    max-width: 800px;
    margin: 0 auto;
}

.setup-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.setup-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.setup-section p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Forms */
.setup-form,
.processing-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.help-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #3b82f6;
}

.help-link i {
    margin-right: 0.5rem;
}

.help-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Webhook Placeholder */
.webhook-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    margin: 1rem 0;
}

.placeholder-content i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.placeholder-content p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(96, 165, 250, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Webhook Setup */
.webhook-setup {
    display: grid;
    gap: 1.5rem;
}

.webhook-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

.status-dot.active {
    background: #10b981;
    animation: pulse 2s infinite;
}

.status-dot.error {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.webhook-instructions ol {
    margin-left: 1.5rem;
    color: #64748b;
}

.webhook-instructions li {
    margin-bottom: 0.5rem;
}

.url-input-group {
    display: flex;
    gap: 0.5rem;
}

.url-input-group input {
    flex: 1;
    background: #f8fafc;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

/* Desktop Setup */
.desktop-setup {
    display: grid;
    gap: 1.5rem;
}

.folder-check {
    padding: 1.5rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.folder-path {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

/* Processing Container */
.processing-container {
    max-width: 800px;
    margin: 0 auto;
}

.info-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #92400e;
}

.info-banner i {
    color: #f59e0b;
}

/* File Drop Zones */
.file-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #60a5fa;
    background: #f0f9ff;
}

.drop-zone-content i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.drop-zone-content p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.file-types {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Step Sections */
.step-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.step-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Bot Status */
.bot-status-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.bot-info {
    margin-bottom: 1rem;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.results-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.result-card.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.result-card.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.result-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #60a5fa;
}

.result-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.result-item p {
    color: #64748b;
    margin-bottom: 0.25rem;
}

.result-item a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.result-item a:hover {
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.toast.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.875rem;
    }
    
    .setup-section,
    .step-section,
    .results-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }
    
    .setup-section,
    .step-section,
    .results-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .file-drop-zone {
        padding: 2rem 1rem;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .toast {
        min-width: auto;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .workflow-cards {
        grid-template-columns: 1fr;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .output-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding: 2rem 1rem;
    }
    
    .home-hero h1 {
        font-size: 1.75rem;
    }
    
    .workflow-card {
        padding: 1.5rem;
    }
    
    .file-grid {
        grid-template-columns: 1fr;
    }
    
    .download-notice {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-section {
        padding: 2rem 1.5rem;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    
    .file-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .section-title {
        flex-direction: column;
        text-align: center;
    }
    
    .workflow-box {
        padding: 1.5rem;
    }
    
    .workflow-icon-large {
        width: 64px;
        height: 64px;
    }
    
    .workflow-icon-large i {
        font-size: 2rem;
    }
    
    .workflow-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* ============================================
   HOME PAGE - CLEAN SIMPLE DESIGN
   ============================================ */

.clean-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.clean-hero h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 1rem auto;
}

.clean-hero p {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.section-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin: 3rem 0 1.5rem 0;
}

/* Beautiful Blue Boxes */
.blue-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 2px solid #7dd3fc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.blue-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
}

.blue-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0c4a6e;
    margin: 0 0 1rem 0;
}

.blue-box p {
    font-size: 1rem;
    color: #075985;
    line-height: 1.7;
    margin: 0;
}

/* Expert Mode Highlight Box */
.blue-box.expert-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    position: relative;
}

.blue-box.expert-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
    border-color: #d97706;
}

.blue-box.expert-highlight h3 {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-badge {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blue-box.expert-highlight p {
    color: #92400e;
    margin-bottom: 1rem;
}

.expert-features {
    margin-top: 1rem;
}

.expert-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expert-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(146, 64, 14, 0.1);
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.expert-features strong {
    color: #b45309;
    font-weight: 600;
}

/* Output Box */
.output-box {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.output-intro {
    font-size: 1rem;
    color: #475569;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.output-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.output-list li {
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-left: 4px solid #60a5fa;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    color: #334155;
    font-size: 0.95rem;
}

/* Context-Aware Sections */
.context-aware-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.context-aware-section h4 {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.context-aware-section p {
    color: #374151;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.context-aware-section .output-list {
    margin: 0.5rem 0 0 0;
}

.context-aware-section .output-list li {
    color: #4b5563;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    border-left: none;
    margin-bottom: 0;
    border-radius: 0;
}

.context-aware-section .output-list li:last-child {
    border-bottom: none;
}

.context-aware-section strong {
    color: #1f2937;
    font-weight: 600;
}

.download-note {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .clean-hero h1 {
        font-size: 1.5rem;
    }
    
    .clean-container {
        padding: 0 1.5rem;
    }
    
    .blue-box {
        padding: 1.5rem;
    }
    
    .output-box {
        padding: 1.5rem;
    }
}
/* ============================================================
   EXPERT MODE STYLES
   ============================================================ */

.expert-mode {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    position: relative;
}

.expert-mode::before {
    content: 'PRO';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    gap: 0.75rem;
}

.user-info i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.admin-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    transform: translateY(-1px);
}

.logout-btn i {
    font-size: 0.9rem;
}

.expert-header {
    position: relative;
    padding-bottom: 2rem;
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.expert-badge i {
    color: #1e293b;
}

.expert-step {
    margin-bottom: 3rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.expert-step.hidden {
    display: none;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-title h2 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step-title p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Quality Analysis Card */
.quality-analysis-card,
.tech-stack-card,
.sdlc-recommendation-card,
.comparison-card,
.sdlc-preview-card,
.jira-results-card,
.download-links-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.quality-analysis-card h3,
.tech-stack-card h3,
.sdlc-recommendation-card h3,
.comparison-card h3,
.sdlc-preview-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quality-analysis-card h3 i {
    color: #10b981;
}

.tech-stack-card h3 i {
    color: #6366f1;
}

.sdlc-recommendation-card h3 i {
    color: #f59e0b;
}

.analysis-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.analysis-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.analysis-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.quality-score {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.improvements-list,
.issues-list {
    list-style: none;
    padding: 0;
}

.improvements-list li,
.issues-list li {
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.issues-list li {
    background: #fef2f2;
    border-left-color: #ef4444;
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tech-stack-item {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #c4b5fd;
}

.tech-stack-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b21a8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-stack-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4c1d95;
}

/* Recommendation Content */
.recommendation-content {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.recommendation-badge {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recommendation-text {
    color: #92400e;
    font-size: 1rem;
    line-height: 1.6;
}

/* Comparison Tabs */
.comparison-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #3b82f6;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
}

.tab-content {
    display: none;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    max-height: 2000px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tab-content.active {
    display: block;
}

/* SDLC Tickets Grid */
.sdlc-tickets-grid {
    display: grid;
    gap: 1.5rem;
}

.sdlc-ticket-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.sdlc-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ticket-stage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stage-requirements { background: #dbeafe; color: #1e40af; }
.stage-design { background: #e0e7ff; color: #4338ca; }
.stage-development { background: #ddd6fe; color: #6b21a8; }
.stage-testing { background: #fce7f3; color: #be185d; }
.stage-deployment { background: #dcfce7; color: #15803d; }

.ticket-summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.ticket-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ticket-criteria {
    padding-left: 1.5rem;
    color: #475569;
    font-size: 0.875rem;
}

/* Approval Actions */
.approval-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem 0;
}

/* Ticket Generation Grid */
.ticket-generation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ticket-gen-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.ticket-gen-card.generating {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.ticket-gen-card.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.ticket-gen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ticket-key {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.gen-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: #e2e8f0; color: #475569; }
.status-generating { background: #dbeafe; color: #1e40af; }
.status-completed { background: #dcfce7; color: #15803d; }

.generated-files-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.generated-files-list li {
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #334155;
}

.download-ticket-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Cache buster - Thu Oct  2 12:50:16 EDT 2025 */

/* Editable Tickets Styles */
.ticket-header-expandable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.ticket-header-expandable:hover {
    background-color: #f8fafc;
}

.ticket-info {
    flex: 1;
}

.ticket-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-edited {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-regenerated {
    background-color: #dbeafe;
    color: #1e40af;
}

.files-count {
    background-color: #e0e7ff;
    color: #4338ca;
}

.expand-icon {
    transition: transform 0.3s ease;
    color: #64748b;
}

.expand-icon.rotated {
    transform: rotate(180deg);
}

.ticket-edit-section {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    animation: slideDown 0.3s ease;
}

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

.edit-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.form-group .help-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.files-list h6 {
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: #10b981;
    color: white;
}

.notification.error {
    background: #ef4444;
    color: white;
}

.notification.info {
    background: #3b82f6;
    color: white;
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
