corpusdb / app /styles.css
mrsavage1's picture
Upload 52 files
723f9ab verified
/* CorpusDB Complete Styles */
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;background:#0a0e27;color:#ededed;font-size:13px;line-height:1.5;}
/* Layout */
.app{display:grid;grid-template-columns:260px 1fr;min-height:100vh;}
.main{background:#0a0e27;padding:24px;overflow-y:auto;height:100vh;}
/* Icons using CSS shapes - Professional */
.icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;position:relative;}
/* Dashboard - Grid */
.icon-dashboard::before,.icon-dashboard::after{content:'';position:absolute;background:currentColor;}
.icon-dashboard::before{width:7px;height:7px;top:0;left:0;}
.icon-dashboard::after{width:7px;height:7px;top:0;right:0;box-shadow:0 11px 0 0 currentColor,-11px 0 0 0 currentColor,-11px 11px 0 0 currentColor;}
/* Database - Cylinder */
.icon-database{border:2px solid currentColor;border-radius:50%;width:16px;height:10px;position:relative;}
.icon-database::before{content:'';position:absolute;width:16px;height:2px;background:currentColor;top:3px;left:-2px;}
.icon-database::after{content:'';position:absolute;width:16px;height:2px;background:currentColor;top:6px;left:-2px;}
/* SQL - Lightning */
.icon-sql::before{content:'';position:absolute;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:10px solid currentColor;top:0;left:4px;}
.icon-sql::after{content:'';position:absolute;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:8px solid currentColor;top:6px;left:4px;}
/* Import - Down Arrow */
.icon-import::before{content:'';position:absolute;width:2px;height:12px;background:currentColor;top:0;left:8px;}
.icon-import::after{content:'';position:absolute;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid currentColor;bottom:0;left:5px;}
/* Export - Up Arrow */
.icon-export::before{content:'';position:absolute;width:2px;height:12px;background:currentColor;top:6px;left:8px;}
.icon-export::after{content:'';position:absolute;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:6px solid currentColor;top:0;left:5px;}
/* Users - Person */
.icon-users{border:2px solid currentColor;border-radius:50%;width:8px;height:8px;position:relative;top:-2px;}
.icon-users::after{content:'';position:absolute;width:14px;height:8px;border:2px solid currentColor;border-radius:8px 8px 0 0;border-bottom:none;top:8px;left:-5px;}
/* Security - Shield */
.icon-security::before{content:'';position:absolute;width:12px;height:14px;border:2px solid currentColor;border-radius:2px 2px 6px 6px;top:2px;left:3px;}
.icon-security::after{content:'';position:absolute;width:6px;height:4px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);top:7px;left:6px;}
/* Backup - Save */
.icon-backup{border:2px solid currentColor;width:14px;height:16px;border-radius:2px;position:relative;top:1px;}
.icon-backup::before{content:'';position:absolute;width:6px;height:2px;background:currentColor;top:4px;left:2px;}
.icon-backup::after{content:'';position:absolute;width:6px;height:2px;background:currentColor;top:8px;left:2px;box-shadow:0 4px 0 0 currentColor;}
/* Audit - Document */
.icon-audit{border:2px solid currentColor;width:12px;height:16px;border-radius:2px;position:relative;top:1px;}
.icon-audit::before{content:'';position:absolute;width:6px;height:2px;background:currentColor;top:3px;left:1px;}
.icon-audit::after{content:'';position:absolute;width:6px;height:2px;background:currentColor;top:7px;left:1px;box-shadow:0 4px 0 0 currentColor;}
/* AI - Brain/Circuit */
.icon-ai{border:2px solid currentColor;border-radius:50%;width:14px;height:14px;position:relative;}
.icon-ai::before{content:'';position:absolute;width:4px;height:4px;border:2px solid currentColor;border-radius:50%;top:3px;left:3px;}
/* API - Code Brackets */
.icon-api::before{content:'';position:absolute;width:4px;height:8px;border:2px solid currentColor;border-right:none;border-radius:3px 0 0 3px;top:5px;left:2px;}
.icon-api::after{content:'';position:absolute;width:4px;height:8px;border:2px solid currentColor;border-left:none;border-radius:0 3px 3px 0;top:5px;right:2px;}
/* Settings - Gear */
.icon-settings{border:2px solid currentColor;border-radius:50%;width:10px;height:10px;position:relative;top:4px;}
.icon-settings::before{content:'';position:absolute;width:2px;height:4px;background:currentColor;top:-4px;left:2px;box-shadow:0 14px 0 0 currentColor,4px -4px 0 0 currentColor,-4px -4px 0 0 currentColor;}
/* Logout - Arrow Right */
.icon-logout::before{content:'';position:absolute;width:10px;height:2px;background:currentColor;top:8px;left:4px;}
.icon-logout::after{content:'';position:absolute;width:0;height:0;border-left:5px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;top:5px;right:0;}
/* Check - Checkmark */
.icon-check::before{content:'';position:absolute;width:3px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);top:3px;left:6px;}
/* Refresh - Circular Arrow */
.icon-refresh{border:2px solid currentColor;border-radius:50%;width:14px;height:14px;border-top-color:transparent;position:relative;}
.icon-refresh::after{content:'';position:absolute;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:5px solid currentColor;top:-3px;right:1px;transform:rotate(45deg);}
/* Sidebar */
.sidebar{background:#1c1c1c;border-right:1px solid #2e2e2e;padding:16px;display:flex;flex-direction:column;height:100vh;overflow-y:auto;}
/* Brand Section */
.brand{margin-bottom:16px;}
.brand-logo{display:flex;align-items:center;gap:10px;margin-bottom:6px;}
.brand-logo .icon{width:36px;height:36px;background:#3ecf8e;color:#111;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;flex-shrink:0;}
.brand-logo div{font-size:20px;font-weight:700;color:#3ecf8e;line-height:1;}
.brand-sub{font-size:9px;color:#6b6b6b;letter-spacing:1.5px;text-transform:uppercase;font-weight:600;}
/* Project Badge */
.project-badge{background:#242424;padding:10px 12px;border-radius:6px;margin:16px 0 20px 0;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#9b9b9b;border:1px solid #2e2e2e;}
.project-badge span{font-weight:500;color:#ededed;}
.project-dot{width:8px;height:8px;background:#3ecf8e;border-radius:50%;flex-shrink:0;}
/* Navigation Sections */
.nav-section{margin-bottom:24px;}
.nav-label{font-size:10px;color:#6b6b6b;text-transform:uppercase;letter-spacing:1px;margin-bottom:10px;padding:0 12px;font-weight:600;}
.nav-item{padding:10px 12px;cursor:pointer;border-radius:6px;margin-bottom:2px;color:#9b9b9b;display:flex;align-items:center;gap:10px;transition:all 0.2s;font-size:13px;}
.nav-item:hover{background:#242424;color:#ededed;}
.nav-item.active{background:#242424;color:#ededed;border-left:3px solid #3ecf8e;padding-left:9px;}
.nav-item .ni{font-size:16px;display:flex;align-items:center;width:20px;justify-content:center;flex-shrink:0;}
.nav-sep{height:1px;background:#2e2e2e;margin:20px 0;}
/* Sidebar Bottom */
.sidebar-bottom{margin-top:auto;padding-top:20px;border-top:1px solid #2e2e2e;}
.user-pill{display:flex;align-items:center;gap:10px;padding:12px;background:#242424;border-radius:8px;cursor:pointer;margin-bottom:12px;transition:all 0.2s;border:1px solid #2e2e2e;}
.user-pill:hover{background:#2e2e2e;border-color:#3ecf8e;}
.user-avatar{width:36px;height:36px;background:#3ecf8e;color:#111;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex-shrink:0;}
.user-info-text{flex:1;min-width:0;}
.user-info-text .name{font-size:14px;font-weight:600;color:#ededed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.user-info-text .role-txt{font-size:11px;color:#6b6b6b;margin-top:2px;}
.conn-bar{display:flex;align-items:center;gap:8px;font-size:11px;color:#6b6b6b;padding:10px 12px;background:#242424;border-radius:6px;border:1px solid #2e2e2e;}
.conn-bar .dot{width:8px;height:8px;background:#3ecf8e;border-radius:50%;animation:pulse 2s infinite;flex-shrink:0;}
.conn-bar .dot.red{background:#f87171;}
.conn-bar .dot.yellow{background:#fbbf24;}
.conn-bar span{flex:1;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:0.5;}}
/* Topbar */
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;background:#1c1c1c;border-bottom:1px solid #2e2e2e;margin:-24px -24px 24px -24px;border-radius:8px 8px 0 0;}
.topbar-title{font-size:20px;font-weight:600;}
.topbar-sub{font-size:12px;color:#6b6b6b;margin-top:4px;}
.topbar-right{display:flex;gap:8px;}
/* Cards */
.card{background:#1e1e1e;border:1px solid #2e2e2e;border-radius:8px;padding:20px;margin-bottom:20px;}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #2e2e2e;}
.card-head span{font-size:16px;font-weight:600;}
.card-body{font-size:13px;}
.card-body.no-pad{padding:0;margin:-20px;}
.ch-right{display:flex;gap:8px;align-items:center;}
.ch-sub{font-size:11px;color:#6b6b6b;}
/* Buttons */
.btn{display:inline-block;padding:10px 20px;background:#3ecf8e;color:#111;border:none;border-radius:6px;cursor:pointer;font-size:13px;font-weight:600;margin-right:8px;transition:all 0.2s;}
.btn:hover{background:#5ee7a8;transform:translateY(-1px);}
.btn.primary{background:#3ecf8e;color:#111;}
.btn.ghost{background:transparent;color:#9b9b9b;border:1px solid #2e2e2e;}
.btn.ghost:hover{background:#242424;color:#ededed;}
.btn.danger{background:#f87171;color:#fff;}
.btn.danger:hover{background:#ef4444;}
.btn.sm{padding:6px 12px;font-size:12px;}
.btn.xs{padding:4px 10px;font-size:11px;}
/* Forms */
input,textarea,select{width:100%;padding:12px;background:#111;border:1px solid #2e2e2e;border-radius:6px;color:#ededed;font-size:13px;margin-bottom:12px;font-family:inherit;}
input:focus,textarea:focus,select:focus{outline:none;border-color:#3ecf8e;box-shadow:0 0 0 3px rgba(62,207,142,0.1);}
.form-group{margin-bottom:16px;}
.form-label{display:block;margin-bottom:8px;font-size:13px;font-weight:500;color:#9b9b9b;}
.form-hint{font-size:11px;color:#6b6b6b;margin-top:4px;}
.input-group{display:flex;gap:8px;}
.input-group input{margin-bottom:0;}
/* Tables */
.tbl-wrap{overflow-x:auto;}
table{width:100%;border-collapse:collapse;}
th,td{padding:12px;text-align:left;border-bottom:1px solid #2e2e2e;}
th{background:#242424;font-weight:600;color:#9b9b9b;font-size:12px;text-transform:uppercase;letter-spacing:0.5px;}
tr:hover{background:#242424;}
.table-tag{background:#242424;padding:4px 8px;border-radius:4px;font-family:monospace;font-size:12px;}
.cell-null{color:#6b6b6b;font-style:italic;}
/* Badges */
.badge{display:inline-block;padding:4px 10px;background:#242424;border-radius:4px;font-size:11px;font-weight:500;}
.badge.green{background:rgba(62,207,142,0.15);color:#3ecf8e;}
.badge.blue{background:rgba(96,165,250,0.15);color:#60a5fa;}
.badge.red{background:rgba(248,113,113,0.15);color:#f87171;}
.badge.yellow{background:rgba(251,191,36,0.15);color:#fbbf24;}
.badge.gray{background:#242424;color:#9b9b9b;}
/* Stats */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px;}
.stat-card{background:#1e1e1e;border:1px solid #2e2e2e;border-radius:8px;padding:16px;display:flex;align-items:center;gap:12px;transition:all 0.2s;}
.stat-card:hover{border-color:#3ecf8e;transform:translateY(-2px);}
.stat-icon-wrap{width:48px;height:48px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:24px;}
.stat-icon-wrap.green{background:rgba(62,207,142,0.15);}
.stat-icon-wrap.blue{background:rgba(96,165,250,0.15);}
.stat-icon-wrap.purple{background:rgba(167,139,250,0.15);}
.stat-icon-wrap.yellow{background:rgba(251,191,36,0.15);}
.stat-text .val{font-size:28px;font-weight:700;line-height:1;}
.stat-text .lbl{font-size:12px;color:#6b6b6b;margin-top:4px;}
/* Grids */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media(max-width:768px){.grid2{grid-template-columns:1fr;}}
/* Empty States */
.empty{text-align:center;padding:60px 20px;color:#6b6b6b;}
.empty-icon{font-size:48px;margin-bottom:16px;opacity:0.5;}
.empty h3{font-size:18px;color:#9b9b9b;margin-bottom:8px;}
.empty p{font-size:14px;margin-bottom:20px;}
/* Loading */
.spinner{display:inline-block;width:20px;height:20px;border:2px solid #2e2e2e;border-top-color:#3ecf8e;border-radius:50%;animation:spin 1s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
/* Toast */
.toast{position:fixed;bottom:20px;right:20px;background:#1e1e1e;border:1px solid #3ecf8e;padding:12px 20px;border-radius:6px;z-index:1000;display:flex;align-items:center;gap:10px;box-shadow:0 4px 12px rgba(0,0,0,0.3);animation:slideIn 0.3s;}
.toast.error{border-color:#f87171;}
.toast.info{border-color:#60a5fa;}
@keyframes slideIn{from{transform:translateX(400px);opacity:0;}to{transform:translateX(0);opacity:1;}}
/* Modal */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.8);display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn 0.2s;}
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}
.modal{background:#1e1e1e;border:1px solid #2e2e2e;border-radius:10px;max-width:600px;width:90%;max-height:80vh;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.5);}
.modal-head{padding:20px;border-bottom:1px solid #2e2e2e;display:flex;justify-content:space-between;align-items:center;}
.modal-head h3{font-size:18px;}
.modal-close{background:none;border:none;color:#6b6b6b;font-size:24px;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;}
.modal-close:hover{background:#242424;color:#ededed;}
.modal-body{padding:20px;overflow-y:auto;max-height:60vh;}
.modal-foot{padding:20px;border-top:1px solid #2e2e2e;display:flex;gap:8px;justify-content:flex-end;}
/* Login */
.login-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:#0a0e27;}
.login-box{background:#1e1e1e;border:1px solid #2e2e2e;border-radius:10px;padding:40px;width:400px;max-width:90%;box-shadow:0 20px 60px rgba(0,0,0,0.3);}
.login-logo-wrap{display:flex;align-items:center;gap:12px;margin-bottom:30px;}
.login-logo-icon{width:48px;height:48px;background:#3ecf8e;color:#111;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;}
.login-logo-text h1{font-size:24px;margin-bottom:4px;}
.login-logo-text p{font-size:12px;color:#6b6b6b;}
.login-error{background:rgba(248,113,113,0.1);border:1px solid rgba(248,113,113,0.3);color:#f87171;padding:12px;border-radius:6px;margin-bottom:16px;display:none;font-size:13px;}
.login-error.show{display:block;}
.login-divider{text-align:center;margin:20px 0;position:relative;}
.login-divider::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:#2e2e2e;}
.login-divider span{background:#1e1e1e;padding:0 12px;position:relative;color:#6b6b6b;font-size:12px;}
.login-footer{text-align:center;color:#6b6b6b;font-size:13px;}
.login-footer a{color:#3ecf8e;cursor:pointer;text-decoration:none;}
.login-footer a:hover{text-decoration:underline;}
/* SQL Editor */
.sql-editor{font-family:'JetBrains Mono',Consolas,monospace;min-height:150px;resize:vertical;}
.kbd{background:#242424;padding:2px 6px;border-radius:4px;font-size:11px;font-family:monospace;border:1px solid #2e2e2e;}
/* Breadcrumb */
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:#6b6b6b;margin-bottom:16px;}
.breadcrumb a{color:#3ecf8e;cursor:pointer;text-decoration:none;}
.breadcrumb a:hover{text-decoration:underline;}
.breadcrumb .sep{color:#2e2e2e;}
/* API Key Display */
.api-key-box{background:#111;border:1px solid #2e2e2e;border-radius:6px;padding:12px;font-family:monospace;font-size:12px;word-break:break-all;margin:8px 0;}
.api-key-label{font-size:11px;color:#6b6b6b;margin-bottom:4px;text-transform:uppercase;letter-spacing:0.5px;}
.api-key-value{color:#3ecf8e;font-weight:600;}
.secret-key-value{color:#60a5fa;font-weight:600;}
/* Responsive */
@media(max-width:768px){
.app{grid-template-columns:1fr;}
.sidebar{display:none;}
.stat-grid{grid-template-columns:1fr;}
}
/* Custom Professional Range Slider */
input[type="range"]{
-webkit-appearance:none;
appearance:none;
width:100%;
height:6px;
background:#2e2e2e;
border-radius:3px;
outline:none;
margin:12px 0;
cursor:pointer;
border:none;
}
input[type="range"]::-webkit-slider-thumb{
-webkit-appearance:none;
appearance:none;
width:18px;
height:18px;
background:#3ecf8e;
border-radius:50%;
cursor:pointer;
transition:all 0.2s;
box-shadow:0 2px 8px rgba(62,207,142,0.4);
}
input[type="range"]::-webkit-slider-thumb:hover{
background:#5ee7a8;
transform:scale(1.15);
box-shadow:0 3px 12px rgba(62,207,142,0.6);
}
input[type="range"]::-webkit-slider-thumb:active{
transform:scale(1.05);
box-shadow:0 2px 6px rgba(62,207,142,0.5);
}
input[type="range"]::-moz-range-thumb{
width:18px;
height:18px;
background:#3ecf8e;
border-radius:50%;
cursor:pointer;
border:none;
transition:all 0.2s;
box-shadow:0 2px 8px rgba(62,207,142,0.4);
}
input[type="range"]::-moz-range-thumb:hover{
background:#5ee7a8;
transform:scale(1.15);
box-shadow:0 3px 12px rgba(62,207,142,0.6);
}
input[type="range"]::-moz-range-thumb:active{
transform:scale(1.05);
box-shadow:0 2px 6px rgba(62,207,142,0.5);
}
input[type="range"]::-moz-range-track{
width:100%;
height:6px;
background:#2e2e2e;
border-radius:3px;
border:none;
}
input[type="range"]:focus{
outline:none;
box-shadow:none;
}
input[type="range"]:focus::-webkit-slider-thumb{
box-shadow:0 0 0 4px rgba(62,207,142,0.15),0 2px 8px rgba(62,207,142,0.4);
}
input[type="range"]:focus::-moz-range-thumb{
box-shadow:0 0 0 4px rgba(62,207,142,0.15),0 2px 8px rgba(62,207,142,0.4);
}