1386 lines
25 KiB
CSS
1386 lines
25 KiB
CSS
/* Main Container & Viewport Layouts */
|
|
.api-dashboard-container.login-mode {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background-color: var(--color-bg-main);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.api-dashboard-layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
background-color: var(--color-bg-main);
|
|
}
|
|
|
|
/* Glassmorphism & Cards */
|
|
.glass-effect {
|
|
background: rgba(255, 255, 255, 0.85);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.premium-card {
|
|
background: var(--color-card-bg);
|
|
border-radius: 1.5rem;
|
|
border: 1px solid var(--color-border);
|
|
padding: 2rem;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.premium-card:hover {
|
|
box-shadow: var(--shadow-xl);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Header styling */
|
|
.dashboard-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.25rem 2rem;
|
|
border-radius: 1.5rem;
|
|
border: 1px solid var(--color-border);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.header-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.tillo-logo-img {
|
|
height: 56px;
|
|
width: auto;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.brand-texts h1 {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.brand-texts .subtitle {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--color-primary);
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* User Badge */
|
|
.user-profile-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.85rem;
|
|
background: rgba(0, 24, 40, 0.03);
|
|
padding: 0.5rem 0.5rem 0.5rem 1rem;
|
|
border-radius: 1rem;
|
|
border: 1px solid var(--color-border-light);
|
|
}
|
|
|
|
.user-profile-badge .avatar {
|
|
background: var(--color-primary);
|
|
color: white;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.user-info .username {
|
|
font-size: 0.875rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-dark);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.user-info .user-role {
|
|
font-size: 0.725rem;
|
|
color: var(--color-text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-logout {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--color-text-muted);
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
background: rgba(239, 68, 68, 0.08);
|
|
color: var(--color-danger);
|
|
}
|
|
|
|
/* Toast Messages */
|
|
.toast {
|
|
position: fixed;
|
|
top: 1.5rem;
|
|
right: 2rem;
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 1rem;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
|
z-index: 1000;
|
|
animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from { transform: translateX(100%) translateY(-10px); opacity: 0; }
|
|
to { transform: translateX(0) translateY(0); opacity: 1; }
|
|
}
|
|
|
|
.toast-success {
|
|
background: #08a850;
|
|
border: 1px solid #068d42;
|
|
}
|
|
|
|
.toast-error {
|
|
background: #ef4444;
|
|
border: 1px solid #dc2626;
|
|
}
|
|
|
|
/* Login Screen */
|
|
.login-screen-wrapper {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2rem 0;
|
|
}
|
|
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 480px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.login-card h2 {
|
|
font-size: 1.75rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
text-align: center;
|
|
}
|
|
|
|
.login-desc {
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.925rem;
|
|
text-align: center;
|
|
margin-top: -0.75rem;
|
|
}
|
|
|
|
.login-type-switch {
|
|
display: flex;
|
|
background: rgba(0, 24, 40, 0.04);
|
|
padding: 0.25rem;
|
|
border-radius: 0.85rem;
|
|
}
|
|
|
|
.login-type-switch button {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0.75rem;
|
|
border-radius: 0.65rem;
|
|
font-weight: 700;
|
|
font-size: 0.875rem;
|
|
color: var(--color-text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.login-type-switch button.active {
|
|
background: white;
|
|
color: var(--color-text-dark);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
/* Forms & Inputs */
|
|
.input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.input-group label {
|
|
font-size: 0.825rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.input-group input,
|
|
.input-group select {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.95rem;
|
|
padding: 0.85rem 1.1rem;
|
|
border-radius: 0.85rem;
|
|
border: 1px solid var(--color-border);
|
|
background-color: #fafdfb;
|
|
color: var(--color-text-primary);
|
|
outline: none;
|
|
transition: all 0.2s;
|
|
width: 100%;
|
|
}
|
|
|
|
.input-group input:focus,
|
|
.input-group select:focus {
|
|
border-color: var(--color-primary);
|
|
background-color: white;
|
|
box-shadow: 0 0 0 3px var(--color-primary-glow);
|
|
}
|
|
|
|
.input-group select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 1.1rem center;
|
|
background-size: 1.1rem;
|
|
padding-right: 2.5rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary {
|
|
background: var(--color-primary);
|
|
color: white;
|
|
font-weight: 700;
|
|
font-size: 0.95rem;
|
|
padding: 0.95rem 1.5rem;
|
|
border-radius: 1rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 8px 16px -4px rgba(8, 168, 80, 0.25);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--color-primary-dark);
|
|
box-shadow: 0 10px 20px -4px rgba(8, 168, 80, 0.35);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-primary:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
background: var(--color-text-muted);
|
|
box-shadow: none;
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.btn-postman {
|
|
background: #ff6c37;
|
|
color: white;
|
|
font-family: var(--font-sans);
|
|
font-weight: 700;
|
|
font-size: 0.875rem;
|
|
padding: 0.85rem 1.25rem;
|
|
border-radius: 1rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 8px 16px -4px rgba(255, 108, 55, 0.25);
|
|
}
|
|
|
|
.btn-postman:hover {
|
|
background: #ef5b25;
|
|
box-shadow: 0 10px 20px -4px rgba(255, 108, 55, 0.35);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-postman:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.w-full {
|
|
width: 100%;
|
|
}
|
|
|
|
.demo-credentials-box {
|
|
background: rgba(8, 168, 80, 0.05);
|
|
border: 1px dashed rgba(8, 168, 80, 0.2);
|
|
border-radius: 1rem;
|
|
padding: 1.1rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.demo-credentials-box h4 {
|
|
font-size: 0.85rem;
|
|
font-weight: 800;
|
|
color: var(--color-primary-dark);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.demo-credentials-box p {
|
|
font-size: 0.8rem;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
/* Main Dashboard Workspace Layout */
|
|
.dashboard-sidebar {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 280px;
|
|
height: 100vh;
|
|
border-radius: 0;
|
|
border: none;
|
|
border-right: 1px solid var(--color-border);
|
|
padding: 2.25rem 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
z-index: 50;
|
|
background-color: var(--color-bg-sidebar);
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
margin-top: auto;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--color-border-light);
|
|
}
|
|
|
|
.sidebar-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
width: 100%;
|
|
padding: 0.85rem 1.1rem;
|
|
border-radius: 1rem;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--color-text-secondary);
|
|
font-weight: 700;
|
|
font-size: 0.875rem;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: rgba(0, 24, 40, 0.03);
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: var(--color-primary-glow);
|
|
color: var(--color-primary-dark);
|
|
}
|
|
|
|
.nav-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-item-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
}
|
|
|
|
.submenu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
padding-left: 0.75rem;
|
|
margin-top: 0.25rem;
|
|
border-left: 2px solid var(--color-border);
|
|
margin-left: 1.1rem;
|
|
}
|
|
|
|
.submenu-item {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--color-text-secondary);
|
|
font-family: var(--font-sans);
|
|
font-weight: 600;
|
|
font-size: 0.775rem;
|
|
padding: 0.45rem 0.75rem;
|
|
border-radius: 0.5rem;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: all 0.2s;
|
|
width: auto;
|
|
}
|
|
|
|
.submenu-item:hover {
|
|
background: rgba(0, 24, 40, 0.03);
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.security-guarantee-box {
|
|
background: var(--color-primary-glow);
|
|
border: 1px solid rgba(8, 168, 80, 0.1);
|
|
border-radius: 1.25rem;
|
|
padding: 1.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.shield-icon {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.security-guarantee-box h4 {
|
|
font-size: 0.875rem;
|
|
font-weight: 800;
|
|
color: var(--color-primary-dark);
|
|
}
|
|
|
|
.security-guarantee-box p {
|
|
font-size: 0.775rem;
|
|
color: var(--color-text-secondary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Main Content Area */
|
|
.dashboard-main-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-left: 280px;
|
|
flex: 1;
|
|
padding: 3rem;
|
|
min-height: 100vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tab-pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.panel-header h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.panel-header p {
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* Key Management Grid */
|
|
.keys-grid {
|
|
display: grid;
|
|
grid-template-columns: 360px 1fr;
|
|
gap: 2rem;
|
|
align-items: start;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.keys-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.key-creator-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.key-creator-card h3 {
|
|
font-size: 1.15rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.card-desc {
|
|
font-size: 0.85rem;
|
|
color: var(--color-text-secondary);
|
|
margin-top: -0.75rem;
|
|
}
|
|
|
|
.create-key-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.limit-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.8rem;
|
|
color: var(--color-text-secondary);
|
|
background: rgba(0, 24, 40, 0.03);
|
|
padding: 0.6rem 1rem;
|
|
border-radius: 0.75rem;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.limit-indicator .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.keys-list-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 4rem 2rem;
|
|
border: 2px dashed var(--color-border);
|
|
border-radius: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-secondary);
|
|
max-width: 320px;
|
|
}
|
|
|
|
.api-key-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.key-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: start;
|
|
}
|
|
|
|
.key-card-header h4 {
|
|
font-size: 1.1rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.badge-user-type {
|
|
font-size: 0.7rem;
|
|
font-weight: 800;
|
|
color: var(--color-primary-dark);
|
|
background: var(--color-primary-glow);
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 0.5rem;
|
|
display: inline-block;
|
|
margin-top: 0.25rem;
|
|
letter-spacing: 0.03em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.btn-revoke {
|
|
background: var(--color-danger-glow);
|
|
color: var(--color-danger);
|
|
border: 1px solid rgba(239, 68, 68, 0.15);
|
|
font-weight: 700;
|
|
font-size: 0.775rem;
|
|
padding: 0.4rem 0.85rem;
|
|
border-radius: 0.6rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-revoke:hover {
|
|
background: var(--color-danger);
|
|
color: white;
|
|
}
|
|
|
|
.key-display-box {
|
|
display: flex;
|
|
background: #fafdfb;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 0.85rem;
|
|
padding: 0.75rem 1rem;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.key-code {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 0.875rem;
|
|
color: var(--color-text-primary);
|
|
font-weight: 600;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.key-actions {
|
|
display: flex;
|
|
gap: 0.35rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-icon-only {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--color-text-secondary);
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-icon-only:hover {
|
|
background: rgba(0, 24, 40, 0.04);
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.key-metadata {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.775rem;
|
|
color: var(--color-text-secondary);
|
|
border-top: 1px solid var(--color-border-light);
|
|
padding-top: 0.85rem;
|
|
}
|
|
|
|
/* Sandbox Playground Workspace */
|
|
.sandbox-workspace {
|
|
display: grid;
|
|
grid-template-columns: 380px 1fr;
|
|
gap: 2rem;
|
|
align-items: start;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.sandbox-workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.sandbox-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.security-audit-card {
|
|
border-color: rgba(234, 88, 12, 0.2);
|
|
}
|
|
|
|
.audit-card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.audit-card-title h3 {
|
|
font-size: 1.15rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.attack-buttons-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn-attack {
|
|
background: #fafdfb;
|
|
border: 1px solid rgba(234, 88, 12, 0.2);
|
|
color: var(--color-warning);
|
|
font-family: var(--font-sans);
|
|
font-weight: 700;
|
|
font-size: 0.825rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.85rem;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.btn-attack:hover {
|
|
background: var(--color-warning-glow);
|
|
border-color: var(--color-warning);
|
|
}
|
|
|
|
.btn-attack::after {
|
|
content: "→";
|
|
font-size: 1.1rem;
|
|
font-weight: 900;
|
|
}
|
|
|
|
/* Sandbox Outputs Terminal */
|
|
.sandbox-outputs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.output-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.output-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--color-border-light);
|
|
padding-bottom: 0.85rem;
|
|
}
|
|
|
|
.output-card-header h3 {
|
|
font-size: 1.1rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.status-badge {
|
|
font-size: 0.775rem;
|
|
font-weight: 800;
|
|
padding: 0.35rem 0.75rem;
|
|
border-radius: 2rem;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.status-badge.success {
|
|
background: var(--color-primary-glow);
|
|
color: var(--color-primary-dark);
|
|
border: 1px solid rgba(8, 168, 80, 0.15);
|
|
}
|
|
|
|
.status-badge.error {
|
|
background: var(--color-danger-glow);
|
|
color: var(--color-danger);
|
|
border: 1px solid rgba(239, 68, 68, 0.15);
|
|
}
|
|
|
|
.status-badge.block {
|
|
background: var(--color-danger-glow);
|
|
color: var(--color-danger);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.status-badge.breach {
|
|
background: #fef3c7;
|
|
color: #d97706;
|
|
border: 1px solid #fcd34d;
|
|
}
|
|
|
|
.terminal-body {
|
|
background: #011627;
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
min-height: 240px;
|
|
max-height: 480px;
|
|
overflow: auto;
|
|
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
display: flex;
|
|
}
|
|
|
|
.json-output {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 0.8rem;
|
|
color: #addb67; /* beautiful neonish green */
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
width: 100%;
|
|
}
|
|
|
|
.terminal-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
color: var(--color-text-muted);
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.terminal-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
gap: 1rem;
|
|
color: #8093f1;
|
|
}
|
|
|
|
.spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid rgba(128, 147, 241, 0.2);
|
|
border-top-color: #8093f1;
|
|
border-radius: 50%;
|
|
animation: loading-spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes loading-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Attack terminal custom designs */
|
|
.attack-output-card {
|
|
border-color: rgba(234, 88, 12, 0.25);
|
|
}
|
|
|
|
.text-orange {
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.attack-terminal {
|
|
background: #110702;
|
|
border: 1px solid rgba(234, 88, 12, 0.15);
|
|
}
|
|
|
|
.orange-spinner {
|
|
border-color: rgba(234, 88, 12, 0.2);
|
|
border-top-color: var(--color-warning);
|
|
}
|
|
|
|
.firewall-audit-header {
|
|
font-family: ui-monospace, monospace;
|
|
font-size: 0.85rem;
|
|
color: #ffffff;
|
|
padding-bottom: 0.85rem;
|
|
margin-bottom: 0.85rem;
|
|
border-bottom: 1px dashed rgba(234, 88, 12, 0.2);
|
|
}
|
|
|
|
.green-text {
|
|
color: #10b981;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.json-output.attack-output {
|
|
color: #f87171; /* soft red */
|
|
}
|
|
|
|
/* Documentation Reference View */
|
|
.docs-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.docs-card h3 {
|
|
font-size: 1.25rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.docs-card h3.section-title {
|
|
margin-top: 1rem;
|
|
border-top: 1px solid var(--color-border);
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
.code-block-wrapper {
|
|
background: #0f172a;
|
|
border-radius: 1rem;
|
|
padding: 1.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.code-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: var(--color-text-muted);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.btn-copy-code {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
border: none;
|
|
font-weight: 700;
|
|
font-size: 0.7rem;
|
|
padding: 0.35rem 0.75rem;
|
|
border-radius: 0.5rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-copy-code:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.code-pre {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
font-size: 0.85rem;
|
|
color: #38bdf8; /* light sky blue */
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.docs-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.docs-table th,
|
|
.docs-table td {
|
|
padding: 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.docs-table th {
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
letter-spacing: 0.05em;
|
|
background: rgba(0, 24, 40, 0.02);
|
|
}
|
|
|
|
.docs-table td {
|
|
font-size: 0.875rem;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.method-get {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: #059669;
|
|
font-weight: 800;
|
|
font-size: 0.725rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 0.4rem;
|
|
display: inline-block;
|
|
}
|
|
|
|
.security-notice-banner {
|
|
background: var(--color-primary-glow);
|
|
border: 1px solid rgba(8, 168, 80, 0.15);
|
|
border-radius: 1.25rem;
|
|
padding: 1.5rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.security-notice-banner h4 {
|
|
font-size: 1rem;
|
|
font-weight: 800;
|
|
color: var(--color-primary-dark);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.security-notice-banner p {
|
|
font-size: 0.85rem;
|
|
color: var(--color-text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Elevated permissions toggles and scopes layout */
|
|
.permissions-config {
|
|
margin-top: 1.5rem;
|
|
padding-top: 1.25rem;
|
|
border-top: 1px solid var(--color-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.toggle-label-header {
|
|
font-size: 0.775rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-secondary);
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 0.25rem;
|
|
display: block;
|
|
}
|
|
|
|
.toggle-switch-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
/* Sliding switch container */
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 44px;
|
|
height: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #cbd5e1;
|
|
transition: .3s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
transition: .3s;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #ef6c37;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
.slider.round {
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.toggle-desc {
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-dark);
|
|
}
|
|
|
|
.permissions-checklist {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.65rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.permission-group-card {
|
|
background: rgba(0, 24, 40, 0.015);
|
|
border: 1px solid var(--color-border-light);
|
|
border-radius: 0.75rem;
|
|
padding: 0.65rem 0.85rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.permission-group-card h4 {
|
|
font-size: 0.825rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-dark);
|
|
margin: 0;
|
|
}
|
|
|
|
.permission-checkboxes {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.checkbox-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--color-text-secondary);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.checkbox-container input {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-container.disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* API Key Card Scopes display */
|
|
.badge-access-type {
|
|
font-size: 0.65rem;
|
|
font-weight: 800;
|
|
padding: 0.15rem 0.4rem;
|
|
border-radius: 0.25rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.badge-access-type.elevated {
|
|
background: rgba(239, 108, 55, 0.1);
|
|
color: #ef6c37;
|
|
}
|
|
|
|
.badge-access-type.readonly {
|
|
background: rgba(8, 168, 80, 0.1);
|
|
color: #08a850;
|
|
}
|
|
|
|
.key-permissions-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
margin-top: 0.75rem;
|
|
border-top: 1px dashed var(--color-border);
|
|
padding-top: 0.75rem;
|
|
}
|
|
|
|
.scopes-label {
|
|
font-size: 0.725rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.scopes-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.scope-tag {
|
|
font-size: 0.625rem;
|
|
font-weight: 700;
|
|
background: rgba(0, 24, 40, 0.04);
|
|
color: var(--color-text-dark);
|
|
padding: 0.1rem 0.4rem;
|
|
border-radius: 0.25rem;
|
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.log-row-hover:hover {
|
|
background-color: rgba(0, 24, 40, 0.02);
|
|
}
|
|
|
|
/* Mobile responsive navigation & header */
|
|
.mobile-header {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.85rem 1.25rem;
|
|
background: rgba(255, 255, 255, 0.85);
|
|
border-bottom: 1px solid var(--color-border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 150;
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
}
|
|
|
|
.mobile-menu-toggle {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--color-text-dark);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.5rem;
|
|
border-radius: 0.5rem;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.mobile-menu-toggle:hover {
|
|
background: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.mobile-brand-title {
|
|
font-size: 1rem;
|
|
font-weight: 800;
|
|
color: var(--color-text-dark);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.sidebar-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
z-index: 190;
|
|
animation: fadeIn 0.2s ease-out forwards;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.mobile-header {
|
|
display: flex;
|
|
}
|
|
|
|
.dashboard-sidebar {
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
box-shadow: 10px 0 30px rgba(0,0,0,0.15);
|
|
z-index: 200;
|
|
}
|
|
|
|
.dashboard-sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.dashboard-main-content {
|
|
margin-left: 0;
|
|
padding: 1.25rem 1rem;
|
|
min-height: calc(100vh - 55px);
|
|
}
|
|
|
|
.panel-header h2 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.panel-header p {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.premium-card {
|
|
padding: 1.25rem;
|
|
border-radius: 1rem;
|
|
}
|
|
|
|
/* Form & Key display adjustments */
|
|
.key-display-box {
|
|
flex-wrap: wrap !important;
|
|
gap: 0.5rem !important;
|
|
padding: 0.75rem !important;
|
|
}
|
|
|
|
.key-code {
|
|
font-size: 0.75rem !important;
|
|
word-break: break-all !important;
|
|
white-space: normal !important;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.limit-indicator {
|
|
align-self: stretch;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Stack columns vertically on small screens */
|
|
.keys-grid,
|
|
.sandbox-workspace {
|
|
grid-template-columns: 1fr !important;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
/* Stack logs split pane details below table on small screens */
|
|
.keys-grid + div,
|
|
div[style*="display: flex; gap: 1.5rem;"] {
|
|
flex-direction: column !important;
|
|
gap: 1rem !important;
|
|
}
|
|
|
|
/* Make sure split pane has full width on mobile */
|
|
div[style*="width: 400px;"] {
|
|
width: 100% !important;
|
|
}
|
|
|
|
/* Login optimizations */
|
|
.login-screen-wrapper {
|
|
padding: 1rem !important;
|
|
}
|
|
|
|
.login-card {
|
|
padding: 1.5rem 1.25rem !important;
|
|
gap: 1.25rem !important;
|
|
}
|
|
}
|