*{margin:0;padding:0;box-sizing:border-box;font-family:Segoe UI,Arial,sans-serif}html,body,#root{width:100%;min-height:100%}body{background:#0f172a;color:#fff;overflow-x:hidden}a{text-decoration:none;color:inherit}button{font-family:inherit}.dashboard{display:flex;min-height:100vh;background:#0f172a}.dashboard-content{flex:1;margin-left:260px;display:flex;flex-direction:column;min-height:100vh}.sidebar{position:fixed;left:0;top:0;width:260px;height:100vh;background:#111827;border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;padding:25px}.logo{margin-bottom:45px}.logo h2{font-size:28px;font-weight:700;color:#fff}.logo span{display:block;margin-top:8px;color:#94a3b8;font-size:14px}.menu{display:flex;flex-direction:column;gap:12px}.menu-item{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:14px;color:#cbd5e1;transition:.25s}.menu-item:hover{background:#1e293b;color:#fff}.menu-item.active{background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff}.sidebar-footer{margin-top:auto}.logout-btn{width:100%;border:none;border-radius:14px;padding:14px;background:#ef4444;color:#fff;font-size:15px;cursor:pointer;display:flex;justify-content:center;align-items:center;gap:10px;transition:.25s}.logout-btn:hover{background:#dc2626}.topbar{height:85px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-bottom:1px solid rgba(255,255,255,.06);background:#0f172a}.search-box{width:360px;display:flex;align-items:center;gap:12px;background:#1e293b;border-radius:14px;padding:12px 18px}.search-box svg{color:#94a3b8}.search-box input{flex:1;background:transparent;border:none;outline:none;color:#fff;font-size:15px}.topbar-right{display:flex;align-items:center;gap:18px}.icon-btn{width:42px;height:42px;border:none;border-radius:50%;background:#1e293b;color:#fff;cursor:pointer;transition:.25s}.icon-btn:hover{background:#334155}.profile-box{display:flex;align-items:center;gap:12px;background:#1e293b;padding:8px 15px;border-radius:14px}.avatar{width:42px;height:42px;border-radius:50%;display:flex;justify-content:center;align-items:center;font-weight:700;background:linear-gradient(135deg,#7c3aed,#2563eb)}.profile-box h4{font-size:15px}.profile-box p{color:#94a3b8;font-size:13px}.welcome{padding:35px}.welcome h1{font-size:34px;font-weight:700;margin-bottom:10px}.welcome p{color:#94a3b8;font-size:17px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px;padding:0 35px;margin-bottom:35px}.stats-card{background:#18181b;border-radius:18px;padding:22px;transition:.3s ease}.stats-card:hover{transform:translateY(-6px);box-shadow:0 15px 35px #00000040}.stats-header{display:flex;align-items:center;gap:18px}.stats-icon{width:65px;height:65px;display:flex;align-items:center;justify-content:center;border-radius:18px;color:#fff;font-size:28px}.stats-info h4{color:#94a3b8;font-size:15px;margin-bottom:6px}.stats-info h2{font-size:30px;margin-bottom:4px}.stats-info p{color:#64748b;font-size:14px}.prompt-box{margin:0 35px 35px;padding:28px;background:#18181b;border-radius:18px}.prompt-header{margin-bottom:22px}.prompt-header h2{font-size:28px;margin-bottom:8px}.prompt-header p{color:#94a3b8}.prompt-box textarea{width:100%;height:170px;resize:none;background:#0f172a;color:#fff;border:1px solid #334155;border-radius:14px;padding:18px;font-size:16px;outline:none;transition:.3s}.prompt-box textarea:focus{border-color:#7c3aed}.character-counter{margin-top:10px;text-align:right;color:#94a3b8;font-size:13px}.suggestions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.chip{border:none;padding:10px 16px;background:#27272a;color:#fff;border-radius:999px;cursor:pointer;transition:.25s}.chip:hover{background:#3b3b42}.prompt-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:14px;margin-top:28px}.secondary-btn,.generate-btn{border:none;border-radius:12px;padding:13px 22px;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:15px;transition:.25s}.secondary-btn{background:#27272a;color:#fff}.secondary-btn:hover{background:#3b3b42}.generate-btn{background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff}.generate-btn:hover{opacity:.92}.generate-btn:disabled{opacity:.6;cursor:not-allowed}.image-viewer{margin:0 35px 35px;padding:28px;background:#18181b;border-radius:18px}.viewer-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.viewer-header h2{font-size:28px;margin-bottom:6px}.viewer-header p{color:#94a3b8;line-height:1.6;word-break:break-word}.image-viewer img{width:100%;max-height:650px;object-fit:contain;border-radius:16px;background:#0f172a}.image-viewer.empty{min-height:350px;display:flex;justify-content:center;align-items:center;text-align:center}.empty-content h2{font-size:28px;margin-bottom:12px}.empty-content p{color:#94a3b8;font-size:16px}.viewer-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:25px}.viewer-actions button{border:none;background:#27272a;color:#fff;border-radius:12px;padding:12px 20px;display:flex;align-items:center;gap:10px;cursor:pointer;transition:.25s}.viewer-actions button:hover{background:#3b3b42}.history-card{margin:0 35px 35px;padding:28px;background:#18181b;border-radius:18px}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.history-header h2{display:flex;align-items:center;gap:10px;font-size:24px}.history-header button{border:none;background:#2563eb;color:#fff;padding:10px 18px;border-radius:10px;cursor:pointer}.history-header button:hover{background:#1d4ed8}.empty-history{text-align:center;padding:50px 20px;color:#94a3b8}.empty-history svg{font-size:55px;margin-bottom:15px}.empty-history h3{color:#fff;margin-bottom:10px}.history-item{display:flex;align-items:center;gap:18px;padding:15px;background:#0f172a;border-radius:14px;margin-bottom:15px}.history-item:last-child{margin-bottom:0}.history-item img{width:90px;height:90px;object-fit:cover;border-radius:12px}.history-info{flex:1}.history-info h4{margin-bottom:8px;font-size:16px}.history-info p{color:#94a3b8;font-size:14px}.delete-btn{width:42px;height:42px;border:none;border-radius:50%;background:#ef4444;color:#fff;cursor:pointer;transition:.25s}.delete-btn:hover{background:#dc2626}.footer{margin:40px 35px 25px;text-align:center;color:#94a3b8;border-top:1px solid rgba(255,255,255,.08);padding-top:22px}.footer p{font-size:15px;margin-bottom:6px}.footer span{font-size:13px;color:#64748b}.loader{width:100%;padding:40px;display:flex;justify-content:center;align-items:center;font-size:22px;font-weight:600;color:#fff}.auth-page{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:20px;background:linear-gradient(135deg,#0f172a,#111827,#1e293b)}.auth-card{width:100%;max-width:430px;padding:40px;border-radius:20px;background:#ffffff0d;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 50px #00000059;text-align:center}.auth-logo{width:80px;height:80px;margin:auto auto 25px;display:flex;justify-content:center;align-items:center;border-radius:50%;font-size:34px;color:#fff;background:linear-gradient(135deg,#7c3aed,#2563eb)}.auth-card h1{font-size:32px;margin-bottom:10px}.input-group{display:flex;align-items:center;margin-bottom:18px;padding:14px 16px;background:#1e293b;border-radius:12px}.input-group input{flex:1;margin-left:12px;background:transparent;border:none;outline:none;color:#fff;font-size:15px}.input-icon{color:#7c3aed}.eye-btn{border:none;background:transparent;color:#94a3b8;cursor:pointer}.auth-btn{width:100%;border:none;border-radius:12px;padding:15px;margin-top:10px;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:.25s}.auth-btn:hover{opacity:.92}.auth-btn:disabled{opacity:.6;cursor:not-allowed}.auth-footer a{margin-left:6px;color:#7c3aed;font-weight:600}@media (max-width: 1024px){.dashboard-content{margin-left:0;width:100%}.sidebar{display:none}.topbar{padding:0 20px}.search-box{width:260px}.welcome,.stats-grid,.prompt-box,.image-viewer,.history-card,.footer{margin-left:20px;margin-right:20px}}@media (max-width: 768px){.topbar{flex-direction:column;justify-content:center;gap:15px;height:auto;padding:20px}.search-box{width:100%}.topbar-right{width:100%;justify-content:space-between}.welcome{padding:25px 20px}.welcome h1{font-size:28px}.stats-grid{grid-template-columns:1fr;padding:0}.prompt-box,.image-viewer,.history-card{padding:20px}.viewer-actions{flex-direction:column}.viewer-actions button{width:100%;justify-content:center}.history-item{flex-direction:column;text-align:center}.history-item img{width:100%;height:220px}.prompt-actions{flex-direction:column}.secondary-btn,.generate-btn{width:100%;justify-content:center}}@media (max-width: 480px){.auth-card{padding:28px 22px}.auth-card h1{font-size:26px}.logo h2,.stats-info h2{font-size:24px}.viewer-header h2{font-size:22px}.prompt-header h2{font-size:24px}}body.light-theme{background:#f8fafc;color:#111827}body.light-theme .dashboard,body.light-theme .dashboard-content{background:#f8fafc}body.light-theme .topbar{background:#fff;color:#111827}body.light-theme .sidebar{background:#fff}body.light-theme .logo h2,body.light-theme .menu-item,body.light-theme .welcome h1{color:#111827}body.light-theme .stats-card,body.light-theme .prompt-box,body.light-theme .image-viewer,body.light-theme .history-card{background:#fff;color:#111827}body.light-theme .search-box{background:#e5e7eb}body.light-theme .search-box input{color:#111827}body.light-theme .icon-btn{background:#e5e7eb;color:#111827}body.light-theme .profile-box{background:#e5e7eb}body.light-theme textarea{background:#f1f5f9;color:#111827}.profile-page{min-height:100vh;padding:40px;display:flex;justify-content:center;align-items:flex-start}.profile-card{width:100%;max-width:600px;background:#18181b;border-radius:25px;padding:40px;text-align:center;box-shadow:0 20px 50px #0000004d}.profile-avatar{width:100px;height:100px;margin:auto;display:flex;justify-content:center;align-items:center;border-radius:50%;font-size:40px;font-weight:700;color:#fff;background:linear-gradient(135deg,#7c3aed,#2563eb)}.profile-card h1{margin-top:20px;font-size:32px}.profile-role{color:#94a3b8;margin-top:8px}.profile-info{margin-top:35px;display:flex;flex-direction:column;gap:18px}.profile-item{display:flex;align-items:center;gap:20px;padding:18px;background:#0f172a;border-radius:15px;text-align:left}.profile-item svg{font-size:24px;color:#7c5cff}.profile-item span{color:#94a3b8;font-size:14px}.profile-item h3{margin-top:5px;font-size:17px}.edit-profile-btn{margin-top:35px;padding:14px 35px;border:none;border-radius:12px;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;font-size:16px;cursor:pointer}.edit-profile-btn:hover{opacity:.9}body.light-theme .profile-card{background:#fff;color:#111827}body.light-theme .profile-item{background:#f1f5f9}body.light-theme .profile-item span{color:#64748b}.settings-page{padding:40px}.settings-card{max-width:700px;margin:auto;background:#18181b;padding:35px;border-radius:25px}.settings-card h1{font-size:34px;margin-bottom:10px}.settings-subtitle{color:#94a3b8;margin-bottom:35px}.settings-section{margin-bottom:35px}.settings-section h2{font-size:22px;margin-bottom:18px}.settings-item{display:flex;align-items:center;gap:20px;padding:18px;background:#0f172a;border-radius:15px;margin-bottom:15px}.settings-item svg{font-size:24px;color:#7c3aed}.settings-item span{color:#94a3b8;font-size:14px}.settings-item h3{margin-top:5px;font-size:16px}.settings-action,.delete-account-btn{width:100%;padding:15px;border:none;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-size:15px}.settings-action{background:#2563eb;color:#fff}.delete-account-btn{background:#ef4444;color:#fff}.danger h2{color:#ef4444}body.light-theme .settings-card{background:#fff;color:#111827}body.light-theme .settings-item{background:#f1f5f9}.modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0f172abf;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;animation:fadeInOverlay .25s cubic-bezier(.16,1,.3,1)}.modal-card{background:#1e293bf2;border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:32px;width:100%;max-width:460px;box-shadow:0 25px 50px -12px #00000080,0 0 30px #7c3aed26;position:relative;display:flex;flex-direction:column;gap:20px;animation:slideUpModal .3s cubic-bezier(.16,1,.3,1)}.modal-card h2{font-size:22px;font-weight:700;color:#fff;margin-bottom:5px}.close-modal{position:absolute;top:20px;right:20px;background:#ffffff14;border:none;color:#94a3b8;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.close-modal:hover{background:#ffffff2e;color:#fff;transform:rotate(90deg)}.modal-form-group{display:flex;flex-direction:column;gap:8px}.modal-form-group label{font-size:13px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px}.modal-card input{width:100%;padding:14px 18px;background:#0f172acc;border:1px solid rgba(255,255,255,.15);border-radius:12px;color:#fff;font-size:15px;outline:none;transition:all .2s ease}.modal-card input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f140;background:#0f172af2}.modal-actions{display:flex;gap:12px;margin-top:10px}.modal-cancel-btn{flex:1;padding:14px;border:1px solid rgba(255,255,255,.15);background:transparent;color:#94a3b8;border-radius:12px;cursor:pointer;font-size:15px;font-weight:600;transition:all .2s ease}.modal-cancel-btn:hover{background:#ffffff14;color:#fff}.theme-switch-btn{padding:8px 16px;background:#7c3aed33;border:1px solid rgba(124,58,237,.4);color:#a78bfa;border-radius:20px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.theme-switch-btn:hover{background:#7c3aed;color:#fff}@keyframes fadeInOverlay{0%{opacity:0}to{opacity:1}}@keyframes slideUpModal{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}body.light-theme{background:#f8fafc;color:#0f172a}body.light-theme .dashboard{background:#f8fafc}body.light-theme .sidebar{background:#fff;border-right:1px solid rgba(0,0,0,.08);box-shadow:2px 0 10px #00000008}body.light-theme .logo h2{color:#0f172a}body.light-theme .logo span{color:#64748b}body.light-theme .menu-item{color:#475569}body.light-theme .menu-item:hover,body.light-theme .menu-item.active{background:#f1f5f9;color:#6366f1}body.light-theme .topbar{background:#fff;border-bottom:1px solid rgba(0,0,0,.08)}body.light-theme .icon-btn{background:#f1f5f9;color:#334155;border:1px solid rgba(0,0,0,.08)}body.light-theme .icon-btn:hover{background:#e2e8f0;color:#0f172a}body.light-theme .profile-box{background:#f1f5f9;border:1px solid rgba(0,0,0,.08)}body.light-theme .profile-box h4{color:#0f172a}body.light-theme .profile-box p{color:#64748b}body.light-theme .settings-card,body.light-theme .profile-card,body.light-theme .card,body.light-theme .history-card{background:#fff;color:#0f172a;border:1px solid rgba(0,0,0,.08);box-shadow:0 4px 20px #0000000d}body.light-theme .settings-card h1,body.light-theme .settings-section h2,body.light-theme .profile-card h1{color:#0f172a}body.light-theme .settings-subtitle,body.light-theme .settings-item span,body.light-theme .profile-item span{color:#64748b}body.light-theme .settings-item,body.light-theme .profile-item{background:#f8fafc;border:1px solid rgba(0,0,0,.06)}body.light-theme .settings-item h3,body.light-theme .profile-item h3{color:#0f172a}body.light-theme .modal-overlay{background:#0f172a80}body.light-theme .modal-card{background:#fff;border:1px solid rgba(0,0,0,.1);box-shadow:0 25px 50px -12px #00000026}body.light-theme .modal-card h2{color:#0f172a}body.light-theme .close-modal{background:#f1f5f9;color:#64748b}body.light-theme .close-modal:hover{background:#e2e8f0;color:#0f172a}body.light-theme .modal-form-group label{color:#475569}body.light-theme .modal-card input{background:#f8fafc;border:1px solid rgba(0,0,0,.12);color:#0f172a}body.light-theme .modal-card input:focus{border-color:#6366f1;background:#fff;box-shadow:0 0 0 3px #6366f126}body.light-theme .modal-cancel-btn{border:1px solid rgba(0,0,0,.12);color:#64748b}body.light-theme .modal-cancel-btn:hover{background:#f1f5f9;color:#0f172a}.history-page-container{padding:30px;max-width:1300px;margin:0 auto;width:100%}.history-page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px;flex-wrap:wrap}.history-page-header h1{font-size:28px;font-weight:700;margin-bottom:6px}.history-page-header p{color:#94a3b8;font-size:15px}.clear-history-btn{width:auto!important;padding:10px 20px!important;font-size:14px!important}.history-stats-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:30px}.history-stat-box{background:#1e293b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px;display:flex;align-items:center;gap:16px}.stat-icon{font-size:26px;padding:12px;border-radius:12px}.stat-icon.purple{background:#7c3aed26;color:#a78bfa}.stat-icon.blue{background:#2563eb26;color:#60a5fa}.stat-icon.green{background:#10b98126;color:#34d399}.history-stat-box span{font-size:13px;color:#94a3b8;display:block}.history-stat-box h3{font-size:20px;font-weight:700;margin-top:4px}.history-filter-bar{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:30px;flex-wrap:wrap}.history-search-box{position:relative;flex:1;min-width:280px;display:flex;align-items:center}.history-search-box svg{position:absolute;left:16px;color:#94a3b8;font-size:16px}.history-search-box input{width:100%;padding:14px 40px 14px 44px;background:#1e293b;border:1px solid rgba(255,255,255,.12);border-radius:14px;color:#fff;font-size:15px;outline:none;transition:all .2s ease}.history-search-box input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f133}.clear-search-btn{position:absolute;right:14px;background:none;border:none;color:#94a3b8;cursor:pointer;font-size:14px}.history-sort-box{display:flex;align-items:center;gap:10px;color:#94a3b8;font-size:14px}.history-sort-box select{padding:12px 18px;background:#1e293b;border:1px solid rgba(255,255,255,.12);border-radius:12px;color:#fff;font-size:14px;outline:none;cursor:pointer}.history-full-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}.history-full-card{background:#1e293b;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:transform .25s ease,box-shadow .25s ease}.history-full-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px #0000004d;border-color:#7c3aed4d}.history-full-img-wrapper{position:relative;width:100%;aspect-ratio:1;overflow:hidden;background:#0f172a;cursor:pointer}.history-full-img-wrapper img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.history-full-card:hover .history-full-img-wrapper img{transform:scale(1.06)}.cached-badge{position:absolute;top:12px;left:12px;background:#10b981e6;color:#fff;font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.5px;box-shadow:0 2px 8px #0000004d}.history-full-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172ab3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;gap:12px;opacity:0;transition:opacity .25s ease}.history-full-img-wrapper:hover .history-full-overlay{opacity:1}.overlay-action-btn{width:42px;height:42px;border-radius:50%;background:#ffffff26;border:1px solid rgba(255,255,255,.25);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;transition:all .2s ease}.overlay-action-btn:hover{background:#7c3aed;transform:scale(1.1)}.history-full-card-info{padding:18px;display:flex;flex-direction:column;gap:12px;flex:1;justify-content:space-between}.history-full-card-info .prompt-text{font-size:14px;line-height:1.5;color:#e2e8f0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500}.card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(255,255,255,.08);padding-top:12px;margin-top:4px}.card-footer .timestamp{font-size:12px;color:#94a3b8}.delete-item-btn{background:none;border:none;color:#ef4444;cursor:pointer;font-size:14px;opacity:.7;transition:opacity .2s ease}.delete-item-btn:hover{opacity:1}.history-grid-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin-top:20px}.history-item-card{background:#0f172a;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.history-img-wrapper{position:relative;width:100%;aspect-ratio:1;overflow:hidden;cursor:pointer}.history-img-wrapper img{width:100%;height:100%;object-fit:cover}.history-overlay-actions{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000a6;display:flex;align-items:center;justify-content:center;gap:10px;opacity:0;transition:opacity .2s ease}.history-img-wrapper:hover .history-overlay-actions{opacity:1}.history-card-body{padding:14px}.history-card-body h4{font-size:13px;font-weight:500;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-card-meta{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;color:#94a3b8}.delete-history-btn{background:none;border:none;color:#ef4444;cursor:pointer}.history-count-badge{background:#7c3aed33;color:#a78bfa;font-size:13px;font-weight:600;padding:4px 12px;border-radius:20px}.history-detail-modal{max-width:820px!important}.detail-modal-body{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:10px}@media (max-width: 768px){.detail-modal-body{grid-template-columns:1fr}}.detail-image-container{width:100%;aspect-ratio:1;border-radius:16px;overflow:hidden;background:#0f172a}.detail-image-container img{width:100%;height:100%;object-fit:cover}.detail-info-container{display:flex;flex-direction:column;gap:16px}.prompt-quote-box{background:#0f172a99;border-left:4px solid #7c3aed;padding:16px;border-radius:10px;font-size:15px;line-height:1.6;color:#f1f5f9}.detail-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.meta-item span{font-size:12px;color:#94a3b8;display:block}.meta-item h4{font-size:14px;font-weight:600;margin-top:2px;color:#e2e8f0}.empty-history-full{text-align:center;padding:80px 20px;background:#1e293b;border:1px dashed rgba(255,255,255,.15);border-radius:20px;margin-top:20px;display:flex;flex-direction:column;align-items:center;gap:16px}.empty-history-full svg{font-size:56px;color:#64748b}.empty-history-full h3{font-size:22px;font-weight:700}.empty-history-full p{color:#94a3b8;max-width:400px}.generate-first-btn{width:auto!important;padding:12px 28px!important;margin-top:10px}.history-loading{text-align:center;padding:60px 20px;color:#94a3b8;font-size:16px}.spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.1);border-top-color:#7c3aed;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 16px}@keyframes spin{to{transform:rotate(360deg)}}body.light-theme .history-stat-box,body.light-theme .history-full-card,body.light-theme .history-item-card,body.light-theme .empty-history-full{background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 4px 15px #0000000a}body.light-theme .history-stat-box h3,body.light-theme .history-search-box input,body.light-theme .history-sort-box select,body.light-theme .history-full-card-info .prompt-text,body.light-theme .history-card-body h4,body.light-theme .prompt-quote-box,body.light-theme .meta-item h4{color:#0f172a}body.light-theme .history-search-box input,body.light-theme .history-sort-box select{background:#fff;border:1px solid rgba(0,0,0,.12)}body.light-theme .prompt-quote-box{background:#f8fafc}*{margin:0;padding:0;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif}body{background:#f4f4f4}.auth-page{min-height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#0f172a,#111827,#1e293b);padding:20px}.auth-card{width:100%;max-width:430px;padding:40px;background:#ffffff0d;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:20px;border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 60px #0006;text-align:center}.auth-logo{width:80px;height:80px;margin:auto auto 25px;display:flex;justify-content:center;align-items:center;border-radius:50%;background:#7c5cff;font-size:34px;color:#fff}.auth-card h1{margin-bottom:10px;font-size:34px;color:#fff}.auth-card p{color:#94a3b8;margin-bottom:30px}.input-group{display:flex;align-items:center;margin-bottom:20px;padding:14px 16px;background:#1e293b;border-radius:12px}.input-group input{flex:1;background:transparent;border:none;outline:none;color:#fff;font-size:16px;margin-left:12px}.input-icon{color:#7c5cff}.eye-btn{background:none;border:none;cursor:pointer;color:#94a3b8;font-size:18px}.auth-btn{width:100%;padding:15px;border:none;border-radius:12px;background:#7c5cff;color:#fff;font-size:17px;font-weight:600;cursor:pointer;transition:.3s}.auth-btn:hover{background:#6243ff}.auth-footer{margin-top:25px;color:#cbd5e1}.auth-footer a{margin-left:8px;text-decoration:none;color:#7c5cff;font-weight:600}
