*{box-sizing:border-box;margin:0;padding:0}:root{--primary:#4f46e5;--primary-dark:#4338ca;--success:#10b981;--danger:#ef4444;--warning:#f59e0b;--bg:#f8fafc;--card-bg:#fff;--text:#1e293b;--text-light:#64748b;--border:#e2e8f0;--shadow:0 4px 6px -1px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a}body{background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.6}.app{flex-direction:column;min-height:100vh;display:flex}.app-header{background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);color:#fff;text-align:center;box-shadow:var(--shadow);padding:2rem}.header-title-container{justify-content:center;align-items:center;gap:1rem;margin-bottom:.5rem;display:flex}.header-icon{color:#fff;opacity:.9}.app-header h1{margin:0;font-size:2rem;font-weight:700}.app-header p{opacity:.9;margin:0;font-size:.95rem}.app-main{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:2rem}.app-footer{background:var(--card-bg);border-top:1px solid var(--border);text-align:center;color:var(--text-light);padding:1.5rem;font-size:.875rem}.upload-container{justify-content:center;align-items:center;min-height:400px;display:flex}.upload-card{background:var(--card-bg);border:1px solid #fffc;border-radius:24px;width:100%;max-width:650px;padding:3rem;position:relative;overflow:hidden;box-shadow:0 20px 50px #0000000d}.upload-header{align-items:center;gap:1.25rem;margin-bottom:.75rem;display:flex}.title-icon{color:var(--primary);background:#f0f4ff;border-radius:12px;padding:.75rem}.upload-card h2{color:var(--text);letter-spacing:-.02em;margin:0;font-size:1.85rem;font-weight:800}.subtitle{color:var(--text-light);margin-bottom:2.5rem;font-size:1rem;font-weight:400}.drop-zone{text-align:center;cursor:pointer;background:#fcfdfe;border:2px dashed #cbd5e1;border-radius:20px;padding:4rem 2rem;transition:all .4s cubic-bezier(.4,0,.2,1);position:relative}.drop-zone:hover{border-color:var(--primary);background:#f5f8ff;transform:translateY(-2px)}.drop-zone.active{border-color:var(--primary);background:#eff6ff;transform:scale(1.01);box-shadow:0 10px 30px #4f46e51a}.drop-zone.has-file{border-color:var(--success);background:#f0fdf4;border-style:solid}.drop-label{cursor:pointer;flex-direction:column;align-items:center;display:flex}.upload-icon-wrapper{color:var(--primary);background:#fff;border-radius:50%;justify-content:center;align-items:center;width:80px;height:80px;margin-bottom:1.5rem;transition:all .3s;display:flex;box-shadow:0 10px 20px #0000000d}.drop-zone:hover .upload-icon-wrapper{transform:scale(1.1)rotate(5deg);box-shadow:0 15px 30px #4f46e526}.drop-text{color:var(--text);margin-bottom:.5rem;font-size:1.25rem;font-weight:700}.or-text{color:var(--text-light);align-items:center;gap:1rem;width:100%;margin:1.25rem 0;display:flex}.or-text:before,.or-text:after{content:"";background:var(--border);flex:1;height:1px}.browse-btn{color:var(--primary);border:1px solid var(--border);background:#fff;border-radius:12px;padding:.85rem 2.5rem;font-weight:700;transition:all .2s;display:inline-block;box-shadow:0 2px 4px #0000000d}.browse-btn:hover{background:var(--bg);border-color:var(--primary);transform:translateY(-1px)}.file-selected{border:1px solid var(--border);background:#fff;border-radius:16px;align-items:center;gap:1.5rem;padding:2rem;display:flex;box-shadow:0 10px 25px #00000008}.file-icon-wrapper{color:var(--primary);background:#eff6ff;border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;width:64px;height:64px;display:flex}.file-info{text-align:left;flex:1}.file-name{color:var(--text);word-break:break-all;margin-bottom:.35rem;font-size:1.1rem;font-weight:700}.file-size{color:var(--text-light);align-items:center;gap:.5rem;font-size:.9rem;font-weight:500;display:flex}.remove-btn{color:var(--danger);cursor:pointer;background:#fee2e2;border:none;border-radius:12px;justify-content:center;align-items:center;width:40px;height:40px;transition:all .2s;display:flex}.remove-btn:hover{background:var(--danger);color:#fff;transform:rotate(90deg)}.upload-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:16px;justify-content:center;align-items:center;gap:.75rem;width:100%;margin-top:2rem;padding:1.25rem;font-size:1.1rem;font-weight:700;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 10px 20px #4f46e533}.upload-btn:hover:not(:disabled){background:var(--primary-dark);transform:translateY(-3px);box-shadow:0 15px 30px #4f46e54d}.upload-btn:active:not(:disabled){transform:translateY(-1px)}.upload-btn:disabled{color:#94a3b8;cursor:not-allowed;box-shadow:none;background:#e2e8f0}.upload-progress-block{background:linear-gradient(135deg,#f8fbff 0%,#eef2ff 100%);border:1px solid #dbe4ff;border-radius:14px;margin-top:1rem;padding:1rem 1.1rem}.upload-progress-meta{color:var(--text);justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.65rem;font-size:.92rem;display:flex}.upload-progress-meta strong{color:var(--primary-dark);word-break:break-word}.upload-progress-track{background:#dbeafe;border-radius:999px;width:100%;height:10px;overflow:hidden}.upload-progress-fill{border-radius:inherit;background:linear-gradient(90deg,#4f46e5 0%,#6366f1 50%,#22c55e 100%);height:100%;transition:width .18s}.error-message{color:var(--danger);background:#fef2f2;border:1px solid #fecaca;border-radius:8px;align-items:center;gap:.5rem;margin-top:1rem;padding:1rem;font-size:.925rem;display:flex}.loader-container{flex-direction:column;justify-content:center;align-items:center;gap:1.5rem;min-height:400px;display:flex}.spinner{border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:60px;height:60px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.loader-container p{color:var(--text-light);font-size:1.1rem}.response-container{animation:.5s ease-in fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.response-card{background:var(--card-bg);box-shadow:var(--shadow-lg);border-radius:16px;padding:2rem}.response-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:2rem;display:flex}.success-badge{align-items:center;gap:1rem;display:flex}.check-icon{color:var(--success)}.success-badge h2{color:var(--text);margin:0;font-size:1.75rem}.reset-btn{background:var(--border);color:var(--text);cursor:pointer;border:none;border-radius:8px;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-weight:500;transition:all .2s;display:flex}.reset-btn:hover{background:#cbd5e1}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem;display:grid}.stat-card{border:1px solid var(--border);background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border-radius:12px;align-items:center;gap:1rem;padding:1.5rem;display:flex}.stat-icon{color:var(--primary);background:#fff;border-radius:10px;justify-content:center;align-items:center;width:40px;height:40px;display:flex;box-shadow:0 2px 4px #0000000d}.stat-label{color:var(--text-light);margin-bottom:.25rem;font-size:.875rem}.stat-value{color:var(--primary);font-size:1.75rem;font-weight:700}.stat-value-small{color:var(--text);font-size:.875rem;font-weight:600}.message-box{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;margin-bottom:2rem;padding:1rem;font-weight:500}.tables-section h3{color:var(--text);margin-bottom:1.5rem;font-size:1.25rem}.table-item{border:1px solid var(--border);background:#fff;border-radius:12px;margin-bottom:1rem;transition:all .2s;overflow:hidden}.table-item:hover{box-shadow:var(--shadow)}.table-header{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.table-header:hover{background:#fafbfc}.table-info h4{color:var(--text);margin-bottom:.75rem;font-size:1.125rem}.table-meta{flex-wrap:wrap;gap:.75rem;display:flex}.badge{background:var(--border);color:var(--text);border-radius:6px;padding:.25rem .75rem;font-size:.8125rem;font-weight:500;display:inline-block}.badge.status-success{color:#065f46;background:#d1fae5}.expand-icon{color:var(--text-light);font-size:1.25rem;transition:transform .2s}.table-details{border-top:1px solid var(--border);background:#fafbfc;padding:1.5rem;animation:.3s ease-out slideDown}@keyframes slideDown{0%{opacity:0;max-height:0}to{opacity:1;max-height:1000px}}.columns-header h5{color:var(--text);margin-bottom:1rem;font-size:1rem}.columns-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;max-height:400px;padding:.5rem;display:grid;overflow-y:auto}.column-card{border:1px solid var(--border);background:#fff;border-radius:8px;padding:1rem}.column-name{color:var(--text);margin-bottom:.5rem;font-size:.9375rem;font-weight:600}.column-type{color:var(--primary);margin-bottom:.25rem;font-size:.875rem;font-weight:500}.column-sql{color:var(--text-light);font-family:Courier New,monospace;font-size:.8125rem}.nullable-badge{color:#92400e;background:#fef3c7;border-radius:4px;margin-top:.5rem;padding:.125rem .5rem;font-size:.75rem;font-weight:500;display:inline-block}@media (width<=768px){.app-header h1{font-size:1.5rem}.app-main{padding:1rem}.upload-card,.response-card{padding:1.5rem}.stats-grid{grid-template-columns:1fr}.response-header{flex-direction:column;align-items:flex-start}.columns-grid{grid-template-columns:1fr}}.columns-grid::-webkit-scrollbar{width:8px}.columns-grid::-webkit-scrollbar-track{background:var(--border);border-radius:4px}.columns-grid::-webkit-scrollbar-thumb{background:var(--text-light);border-radius:4px}.columns-grid::-webkit-scrollbar-thumb:hover{background:var(--text)}.header-content{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;max-width:1200px;margin:0 auto;display:flex}.history-btn{color:#fff;cursor:pointer;background:#fff3;border:2px solid #fff;border-radius:8px;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;transition:all .2s;display:flex}.history-btn:hover{color:var(--primary);background:#fff}.history-modal{z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0009;justify-content:center;align-items:center;padding:1rem;animation:.3s ease-out fadeIn;display:flex;position:fixed;inset:0}.history-content{background:#fff;border-radius:16px;width:100%;max-width:900px;max-height:90vh;animation:.3s ease-out slideUp;overflow-y:auto;box-shadow:0 20px 25px -5px #0000001a}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.history-header{border-bottom:1px solid var(--border);z-index:10;background:#fff;justify-content:space-between;align-items:flex-start;padding:2rem;display:flex;position:sticky;top:0}.header-title{align-items:center;gap:1.25rem;display:flex}.history-header h2{color:#fff;margin:0;font-size:1.75rem}.history-subtitle{color:var(--text-light);font-size:.9rem}.close-btn{background:var(--border);cursor:pointer;width:40px;height:40px;color:var(--text);border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:1.5rem;transition:all .2s;display:flex}.close-btn:hover{background:#cbd5e1;transform:rotate(90deg)}.empty-state{text-align:center;padding:4rem 2rem}.empty-icon{margin-bottom:1rem;font-size:4rem}.empty-state h3{color:var(--text);margin-bottom:.5rem;font-size:1.5rem}.empty-state p{color:var(--text-light)}.history-list{padding:1.5rem}.history-item{border:1px solid var(--border);background:#fff;border-radius:12px;margin-bottom:1rem;transition:all .2s;overflow:hidden}.history-item:hover{box-shadow:var(--shadow)}.history-item-header{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.history-item-info{flex:1}.history-item-title{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.history-item-title .file-icon{font-size:1.5rem}.history-item-title h3{color:var(--text);margin:0;font-size:1.125rem}.status-badge{text-transform:capitalize;border-radius:6px;padding:.25rem .75rem;font-size:.8125rem;font-weight:600}.status-badge.success{color:#065f46;background:#d1fae5}.status-badge.failed{color:#991b1b;background:#fee2e2}.history-item-meta{flex-wrap:wrap;gap:1.5rem;display:flex}.meta-item{color:var(--text-light);font-size:.875rem}.history-item-details{border-top:1px solid var(--border);background:#fafbfc;padding:1.5rem;animation:.3s ease-out slideDown}.detail-section{margin-bottom:1.5rem}.detail-section:last-child{margin-bottom:0}.detail-section h4{color:var(--text);margin-bottom:1rem;font-size:1rem;font-weight:600}.summary-grid{border:1px solid var(--border);background:#fff;border-radius:8px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;padding:1.25rem;display:grid}.summary-item{flex-direction:column;gap:.25rem;display:flex}.summary-label{color:var(--text-light);font-size:.8125rem;font-weight:500}.summary-value{color:var(--text);font-size:.9375rem;font-weight:600}.tables-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.table-card-small{border:1px solid var(--border);background:#fff;border-radius:8px;padding:1rem;transition:all .2s}.table-card-small:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.table-card-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.table-name{color:var(--text);font-size:.9375rem;font-weight:600}.status-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.status-dot.success{background:var(--success)}.status-dot.failed{background:var(--danger)}.table-card-stats{color:var(--text-light);gap:.5rem;margin-bottom:.5rem;font-size:.8125rem;display:flex}.created-badge{color:#1e40af;background:#dbeafe;border-radius:4px;padding:.25rem .5rem;font-size:.75rem;font-weight:600;display:inline-block}.history-content::-webkit-scrollbar{width:10px}.history-content::-webkit-scrollbar-track{background:var(--bg)}.history-content::-webkit-scrollbar-thumb{background:var(--text-light);border-radius:5px}.history-content::-webkit-scrollbar-thumb:hover{background:var(--text)}@media (width<=768px){.header-content{text-align:center;flex-direction:column}.history-btn{justify-content:center;width:100%}.history-modal{padding:0}.history-content{border-radius:0;max-height:100vh}.history-header{padding:1.5rem}.history-list{padding:1rem}.history-item-meta{flex-direction:column;gap:.5rem}.summary-grid,.tables-grid{grid-template-columns:1fr}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.status-dot.success{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.view-details-btn{background:var(--primary);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:8px;padding:.75rem 1.5rem;font-size:.9rem;font-weight:600;transition:all .2s}.view-details-btn:hover{background:var(--primary-dark);transform:translate(4px)}.details-container{padding:2rem;animation:.3s ease-out slideIn}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.back-btn{background:var(--border);color:var(--text);cursor:pointer;border:none;border-radius:8px;align-items:center;gap:.5rem;margin-bottom:1.5rem;padding:.75rem 1.5rem;font-size:.9rem;font-weight:600;transition:all .2s;display:inline-flex}.back-btn:hover{background:#cbd5e1;transform:translate(-4px)}.details-header{margin-bottom:2rem}.details-title{color:var(--primary);flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:.5rem;display:flex}.details-title h2{color:var(--text);margin:0;font-size:1.75rem}.details-date{color:var(--text-light);font-size:.9rem}.badge.new-table{color:#1e40af;background:#dbeafe}.section-title{color:var(--text);align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.section-title h3{margin:0;font-size:1.25rem}.history-item-header{justify-content:space-between;align-items:center;gap:1rem;padding:1.5rem;display:flex}.history-item-header:hover{background:#fafbfc}@media (width<=768px){.details-container{padding:1rem}.history-item-header{flex-direction:column;align-items:flex-start}.view-details-btn{justify-content:center;width:100%}.details-title{flex-direction:column;align-items:flex-start}}.details-container .table-item{margin-bottom:1.5rem}.details-container .table-header{border-left:4px solid var(--primary);background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%)}.column-card{transition:all .2s}.column-card:hover{box-shadow:var(--shadow);border-color:var(--primary);transform:translateY(-2px)}.history-content{transition:all .3s ease-out}.details-container .loader-container{min-height:400px}.login-container{background:radial-gradient(circle at 0 0,#f8fafc,#eff6ff);justify-content:center;align-items:center;min-height:100vh;padding:1.5rem;display:flex;position:relative;overflow:hidden}.login-container:before{content:"";background:radial-gradient(circle,#4f46e50d,#0000 70%);border-radius:50%;width:400px;height:400px;position:absolute;top:-10%;right:-5%}.login-card{background:#fff;border:1px solid #fffc;border-radius:24px;width:100%;max-width:480px;padding:3.5rem;animation:.6s cubic-bezier(.16,1,.3,1) slideUp;box-shadow:0 25px 50px -12px #00000014}.login-brand{text-align:center;margin-bottom:2.5rem}.brand-logo{background:var(--primary);color:#fff;border-radius:16px;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto 1.5rem;display:flex;box-shadow:0 10px 20px #4f46e54d}.login-brand h1{color:var(--text);letter-spacing:-.03em;margin-bottom:.5rem;font-size:2rem;font-weight:800}.login-brand p{color:var(--text-light);font-size:1rem}.login-form{flex-direction:column;gap:1.5rem;display:flex}.input-group{flex-direction:column;gap:.5rem;display:flex}.label-row{justify-content:space-between;align-items:center;display:flex}.input-group label{color:var(--text);font-size:.875rem;font-weight:600}.forgot-link{color:var(--primary);font-size:.875rem;font-weight:600;text-decoration:none}.forgot-link:hover{text-decoration:underline}.input-wrapper{align-items:center;display:flex;position:relative}.input-icon{color:var(--text-light);transition:color .2s;position:absolute;left:1rem}.input-wrapper input{border:1.5px solid var(--border);background:#fcfdfe;border-radius:12px;width:100%;padding:.875rem 1rem .875rem 3rem;font-size:1rem;transition:all .2s}.input-wrapper input:focus{border-color:var(--primary);background:#fff;outline:none;box-shadow:0 0 0 4px #4f46e51a}.input-wrapper input:focus+.input-icon{color:var(--primary)}.password-toggle{color:var(--text-light);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:.25rem;transition:color .2s;display:flex;position:absolute;right:1rem}.password-toggle:hover{color:var(--text)}.form-options{justify-content:space-between;align-items:center;display:flex}.remember-me{cursor:pointer;color:var(--text-light);align-items:center;gap:.5rem;font-size:.875rem;font-weight:500;display:flex}.remember-me input{border:1.5px solid var(--border);cursor:pointer;border-radius:4px;width:16px;height:16px}.login-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:12px;justify-content:center;align-items:center;gap:.75rem;margin-top:1rem;padding:1rem;font-size:1rem;font-weight:700;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;box-shadow:0 10px 20px #4f46e533}.login-btn:hover:not(:disabled){background:var(--primary-dark);transform:translateY(-2px);box-shadow:0 15px 30px #4f46e54d}.login-btn:disabled{cursor:not-allowed;box-shadow:none;background:#e2e8f0}.btn-spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:20px;height:20px;animation:.8s linear infinite spin}.login-footer{text-align:center;color:var(--text-light);margin-top:2.5rem;font-size:.9375rem}.login-footer a{color:var(--primary);font-weight:700;text-decoration:none}.login-footer a:hover{text-decoration:underline}.header-actions{align-items:center;gap:1rem;display:flex}.logout-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:10px;justify-content:center;align-items:center;width:40px;height:40px;transition:all .2s;display:flex}.logout-btn:hover{color:#fecaca;background:#ef444433;border-color:#ef444466}@media (width<=480px){.login-card{padding:2rem}}.auth-container{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.auth-card{background:#fff;border-radius:16px;width:100%;max-width:500px;padding:2.5rem;animation:.4s ease-out slideUp;box-shadow:0 20px 25px -5px #0000001a}.auth-header h2{color:var(--text);margin-bottom:.5rem;font-size:1.75rem}.auth-header p{color:var(--text-light);font-size:.95rem}.auth-form{flex-direction:column;gap:1.25rem;display:flex}.form-group{flex-direction:column;gap:.5rem;display:flex}.form-group label{color:var(--text);font-size:.9rem;font-weight:600}.form-group input,.form-group textarea{border:2px solid var(--border);border-radius:8px;padding:.875rem 1rem;font-family:inherit;font-size:.95rem;transition:all .2s}.form-group input:focus,.form-group textarea:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #4f46e51a}.form-group textarea{resize:vertical}.image-upload-container{width:100%}.image-upload-label{cursor:pointer;border:2px dashed var(--border);border-radius:8px;transition:all .2s;display:block;overflow:hidden}.image-upload-label:hover{border-color:var(--primary);background:#f8f9ff}.upload-placeholder{text-align:center;color:var(--text-light);flex-direction:column;align-items:center;gap:.75rem;padding:2rem;display:flex}.upload-icon{font-size:2.5rem}.image-preview{width:100%;max-height:200px;position:relative}.image-preview img{object-fit:cover;width:100%;height:200px}.change-text{color:#fff;text-align:center;opacity:0;background:#000000b3;padding:.5rem;font-size:.875rem;transition:opacity .2s;position:absolute;bottom:0;left:0;right:0}.image-preview:hover .change-text{opacity:1}.auth-submit-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;gap:.5rem;width:100%;margin-top:.5rem;padding:1rem;font-size:1rem;font-weight:600;transition:all .2s;display:flex}.auth-submit-btn:hover:not(:disabled){background:var(--primary-dark);box-shadow:var(--shadow);transform:translateY(-2px)}.auth-submit-btn:disabled{background:var(--border);cursor:not-allowed;transform:none}.spinner-small{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:16px;height:16px;animation:.8s linear infinite spin}.auth-footer{text-align:center;border-top:1px solid var(--border);margin-top:1rem;padding-top:1rem}.auth-footer p{color:var(--text-light);font-size:.9rem}.link-btn{color:var(--primary);cursor:pointer;background:0 0;border:none;padding:0;font-weight:600;text-decoration:underline}.link-btn:hover{color:var(--primary-dark)}.success-card{text-align:center;max-width:450px}.success-icon{background:var(--success);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:80px;height:80px;margin:0 auto 1.5rem;font-size:3rem;animation:.5s ease-out scaleIn;display:flex}@keyframes scaleIn{0%{transform:scale(0)}to{transform:scale(1)}}.success-card h2{color:var(--text);margin-bottom:1.5rem}.success-info{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;margin-bottom:1rem;padding:1.5rem}.success-message{color:#166534;margin-bottom:1rem;font-weight:500}.user-code{flex-direction:column;gap:.5rem;margin:1rem 0;display:flex}.user-code .label{color:var(--text-light);font-size:.875rem}.user-code .code{border:2px solid var(--success);color:var(--success);letter-spacing:2px;background:#fff;border-radius:8px;padding:.75rem;font-size:1.5rem;font-weight:700}.redirect-text{color:var(--text-light);margin-top:1rem;font-size:.875rem;animation:1.5s infinite pulse}@media (width<=768px){.auth-container{padding:1rem}.auth-card{padding:1.5rem}.auth-header h2{font-size:1.5rem}}.form-group input:invalid:not(:placeholder-shown){border-color:var(--danger)}.form-group input:valid:not(:placeholder-shown){border-color:var(--success)}.otp-message{font-weight:500;color:var(--success)!important}.otp-input{text-align:center;letter-spacing:1rem;font-size:1.5rem;font-weight:600;padding:1rem!important}.otp-input-display{justify-content:center;gap:.5rem;margin-top:1rem;display:flex}.otp-box{border:2px solid var(--border);width:45px;height:55px;color:var(--text);background:#f8f9fa;border-radius:8px;justify-content:center;align-items:center;font-size:1.5rem;font-weight:600;transition:all .2s;display:flex}.otp-box.filled{border-color:var(--primary);color:var(--primary);background:#eff6ff}.otp-timer{text-align:center;color:var(--success);background:#f0fdf4;border-radius:8px;margin:.5rem 0;padding:.75rem;font-size:1.125rem;font-weight:600}.timer-warning{animation:1s infinite pulse;color:var(--danger)!important}.otp-actions{border-top:1px solid var(--border);justify-content:space-between;gap:1rem;margin-top:1rem;padding-top:1rem;display:flex}.text-btn{color:var(--primary);cursor:pointer;background:0 0;border:none;padding:.5rem;font-weight:600;transition:all .2s}.text-btn:hover:not(:disabled){color:var(--primary-dark);text-decoration:underline}.text-btn:disabled{color:var(--text-light);cursor:not-allowed}.header-actions{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.user-info{background:#fff3;border:1px solid #ffffff4d;border-radius:8px;align-items:center;gap:.75rem;padding:.5rem 1rem;display:flex}.user-name{color:#fff;font-size:.95rem;font-weight:600}.user-code{color:var(--primary);background:#fff;border-radius:6px;padding:.25rem .75rem;font-size:.875rem;font-weight:700}.user-status{text-transform:capitalize;border-radius:6px;padding:.25rem .75rem;font-size:.8125rem;font-weight:600}.user-status.status-approved{color:#065f46;background:#d1fae5}.user-status.status-pending{color:#92400e;background:#fef3c7}.user-status.status-rejected{color:#991b1b;background:#fee2e2}.logout-btn{color:#fff;cursor:pointer;background:#ef4444e6;border:2px solid #fff;border-radius:8px;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;transition:all .2s}.logout-btn:hover{color:var(--danger);background:#fff}@media (width<=992px){.header-content{text-align:center;flex-direction:column}.header-actions,.user-info{justify-content:center;width:100%}}@media (width<=640px){.header-actions{flex-direction:column;width:100%}.history-btn,.logout-btn{justify-content:center;width:100%}}.auth-page{background:linear-gradient(135deg,#f8fafc 0%,#eef2ff 100%);justify-content:center;align-items:center;min-height:100vh;padding:1.5rem;display:flex}.auth-card-wrapper{background:#fff;border-radius:24px;grid-template-columns:1fr 1fr;width:100%;max-width:1100px;min-height:680px;display:grid;overflow:hidden;box-shadow:0 24px 60px #02061724}.auth-form-side{flex-direction:column;justify-content:center;padding:2.5rem 3rem;display:flex}.auth-logo-container{align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.auth-logo-icon{color:#fff;background:linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);border-radius:12px;justify-content:center;align-items:center;width:42px;height:42px;display:flex}.auth-logo-text{color:var(--text);font-weight:700}.auth-header{text-align:left;margin-bottom:1.25rem}.auth-header h1{margin:0 0 .5rem;font-size:2rem;line-height:1.2}.auth-header p{color:var(--text-light);margin:0}.auth-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:12px;justify-content:center;align-items:center;gap:.5rem;width:100%;margin-top:.5rem;padding:.9rem 1rem;font-size:1rem;font-weight:700;transition:all .2s;display:flex}.auth-btn:hover:not(:disabled){background:var(--primary-dark);transform:translateY(-1px)}.auth-btn:disabled{opacity:.65;cursor:not-allowed}.auth-switch{color:var(--text-light);margin-top:1.25rem;font-size:.925rem}.auth-switch-btn{color:var(--primary);cursor:pointer;background:0 0;border:none;font-weight:700}.auth-switch-btn:hover{text-decoration:underline}.auth-visual-side{color:#fff;background:linear-gradient(135deg,#0f172a 0%,#1e293b 40%,#334155 100%);justify-content:center;align-items:center;padding:3rem;display:flex;position:relative;overflow:hidden}.visual-content{z-index:2;max-width:420px;position:relative}.visual-content h2{margin:0 0 .75rem;font-size:2rem;line-height:1.2}.visual-content p{color:#cbd5e1;margin:0}.visual-decorations{position:absolute;inset:0}.decor-circle{filter:blur(2px);opacity:.35;border-radius:50%;position:absolute}.decor-1{background:#3b82f6;width:280px;height:280px;top:-80px;right:-70px}.decor-2{background:#14b8a6;width:220px;height:220px;bottom:-70px;left:-60px}.decor-3{background:#6366f1;width:120px;height:120px;top:42%;left:52%}.otp-display-container{gap:.5rem;margin-bottom:.75rem;display:flex}.otp-display-container.otp-segmented{width:auto;box-shadow:none;background:0 0;border:none;border-radius:0;gap:.6rem;margin:0 auto .75rem;overflow:visible}.otp-timer-text{color:var(--text-light);margin-top:-.5rem;font-size:.875rem}.otp-input-field{border:2px solid var(--border);text-align:center;letter-spacing:.3rem;width:100%;color:var(--text);background:#f8fafc;border-radius:12px;padding:.85rem 1rem;font-size:1.1rem;font-weight:700}.otp-input-hidden{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.otp-input-field:focus{border-color:var(--primary);background:#fff;outline:none;box-shadow:0 0 0 3px #4f46e51f}.otp-segmented .otp-box{color:#0f172a;background:#fff;border:1.5px solid #d1d5db;border-radius:10px;width:50px;height:56px;font-size:1.15rem;font-weight:600}.otp-segmented .otp-box:last-child{border-right:1.5px solid #d1d5db}.otp-segmented .otp-box.filled{color:#111827;background:#eef2ff;border-color:#6366f1}.otp-segmented .otp-box.active{border-color:#94a3b8;box-shadow:inset 0 0 0 1px #cbd5e1}.resend-btn{color:var(--primary);cursor:pointer;background:0 0;border:none;align-items:center;padding:.4rem .2rem;font-weight:600;display:inline-flex}.resend-btn:disabled{color:#94a3b8;cursor:not-allowed}@media (width<=900px){.auth-card-wrapper{grid-template-columns:1fr;min-height:auto}.auth-visual-side{display:none}.auth-form-side{padding:2rem 1.25rem}.auth-header h1{font-size:1.7rem}}.dashboard-page{background:linear-gradient(145deg,#f8fafc 0%,#eef2ff 100%);flex-direction:column;min-height:100vh;display:flex}.dashboard-header{z-index:40;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172ae6;border-bottom:1px solid #94a3b840;position:sticky;top:0}.dashboard-header-inner{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;max-width:1200px;margin:0 auto;padding:1rem 1.25rem;display:flex}.dashboard-brand{color:#fff;align-items:center;gap:.85rem;display:flex}.dashboard-logo-icon{background:linear-gradient(135deg,#6366f1 0%,#4338ca 100%);border-radius:12px;justify-content:center;align-items:center;width:42px;height:42px;display:flex;box-shadow:0 10px 24px #6366f159}.dashboard-brand h1{margin:0;font-size:1.15rem}.dashboard-brand p{color:#cbd5e1;margin:0;font-size:.82rem}.dashboard-actions{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.dashboard-user-pill{color:#e2e8f0;background:#ffffff1a;border:1px solid #ffffff26;border-radius:999px;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.86rem;display:inline-flex}.dashboard-user-pill strong{color:#fff;background:#6366f18c;border-radius:999px;padding:.15rem .5rem;font-size:.78rem}.dashboard-btn{color:#fff;cursor:pointer;border:none;border-radius:10px;align-items:center;gap:.45rem;padding:.55rem .85rem;font-weight:600;transition:transform .2s,opacity .2s;display:inline-flex}.dashboard-btn:hover{transform:translateY(-1px)}.dashboard-btn-secondary{background:#ffffff26;border:1px solid #fff3}.dashboard-btn-danger{background:#ef4444eb}.dashboard-main{width:100%;max-width:1200px;margin:0 auto;padding:2rem 1.25rem 2.5rem}.dashboard-intro-card{color:#fff;background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);border-radius:20px;margin-bottom:1.25rem;padding:1.4rem 1.5rem;box-shadow:0 16px 35px #0f172a3d}.dashboard-kicker{color:#a5b4fc;text-transform:uppercase;letter-spacing:.04em;align-items:center;gap:.35rem;margin:0 0 .55rem;font-size:.78rem;font-weight:700;display:inline-flex}.dashboard-intro-card h2{margin:0 0 .45rem;font-size:1.35rem}.dashboard-intro-card p{color:#cbd5e1;margin:0}.dashboard-footer{text-align:center;color:#64748b;padding:.8rem 1rem 1.2rem}.dashboard-footer p{font-size:.8rem}.dashboard-footer span{color:#4f46e5;font-size:1rem;font-weight:700}@media (width<=768px){.dashboard-actions{width:100%}.dashboard-user-pill{justify-content:center;width:100%}.dashboard-btn{flex:1;justify-content:center}}.history-content-elevated{border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 30px 80px #0f172a40}.history-header-modern{color:#fff;background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);border-bottom:none;border-radius:22px 22px 0 0}.history-icon-shell{background:#ffffff24;border-radius:10px;justify-content:center;align-items:center;width:38px;height:38px;display:inline-flex}.history-toolbar{align-items:center;gap:.6rem;display:flex}.history-pill{color:#e2e8f0;background:#ffffff1f;border:1px solid #fff3;border-radius:999px;align-items:center;gap:.35rem;padding:.35rem .65rem;font-size:.78rem;display:inline-flex}.history-error-modern{margin:1rem 1.2rem 0}.history-empty-modern{padding:5rem 2rem}.history-empty-icon{color:#4338ca;background:linear-gradient(135deg,#eef2ff 0%,#dbeafe 100%);border-radius:50%;justify-content:center;align-items:center;width:92px;height:92px;margin:0 auto 1rem;display:inline-flex}.history-list-modern{background:#f8fafc;padding:1rem 1rem 1.25rem}.history-item-modern{border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 4px 14px #0206170a}.history-item-header-modern{border-radius:14px}.history-file-badge{color:#4338ca;background:#eef2ff;border-radius:8px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.details-modern{padding:1.5rem}.details-header-modern{background:linear-gradient(135deg,#f8fafc 0%,#eef2ff 100%);border:1px solid #e2e8f0;border-radius:16px;padding:1rem 1.25rem}.back-btn-modern{background:#fff;border:1px solid #e2e8f0}.details-title-modern{margin-top:.8rem}.details-date-modern{align-items:center;gap:.4rem;margin-top:.6rem;display:inline-flex}.stats-grid-modern .stat-card{background:#fff}.message-box-modern{border-radius:12px}.tables-section-modern{margin-top:1.5rem}.section-title-modern{margin-bottom:1rem}.table-item-modern{border-radius:14px}.table-header-modern{border-radius:14px 14px 0 0}.table-details-modern{background:#f8fafc}.columns-grid-modern{gap:.9rem}.column-card-modern{border-radius:10px}.no-columns-modern{color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:10px;padding:1rem}@media (width<=768px){.history-toolbar{flex-wrap:wrap;justify-content:space-between;width:100%}.history-pill{font-size:.72rem}}
