Download app/static/css/dashboard/keys.css from paisaly/backend: direct link, hf CLI and curl.
- Browser
- Download file 27.7 kB
-
https://huggingface.co/spaces/paisaly/backend/resolve/main/app/static/css/dashboard/keys.css
- Command line
-
hf download hf://spaces/paisaly/backend/app/static/css/dashboard/keys.css
-
curl -L -o keys.css https://huggingface.co/spaces/paisaly/backend/resolve/main/app/static/css/dashboard/keys.css
27.7 kB
/* API Keys Page Specific Styles */
/* Page Header */
.page-header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.page-header-text {
flex: 1;
}
.page-header-actions {
display: flex;
gap: 12px;
align-items: center;
}
.page-header-actions .btn {
text-decoration: none;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
}
.page-header-actions .btn:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.2);
text-decoration: none;
}
/* Keys Container */
.keys-container {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
backdrop-filter: blur(20px);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
overflow: hidden;
}
/* Keys Toolbar */
.keys-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.02);
}
.toolbar-left h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
}
.toolbar-right {
display: flex;
gap: 12px;
}
/* Button Styles */
.btn {
padding: 10px 16px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.2);
}
.btn-primary {
background: var(--accent-primary);
border-color: var(--accent-primary);
color: white;
}
.btn-primary:hover {
background: var(--accent-primary);
border-color: var(--accent-primary);
filter: brightness(1.12);
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
.btn-ghost {
background: transparent;
border-color: transparent;
}
.btn-ghost:hover {
background: rgba(255, 255, 255, 0.08);
}
.btn-danger {
background: transparent;
border-color: var(--color-danger);
color: var(--color-danger);
}
.btn-danger:hover:not(:disabled) {
background: rgba(239, 68, 68, 0.1);
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn i {
font-size: 16px;
}
.btn-sm i {
font-size: 14px;
}
/* Keys List Container */
.keys-list-container {
min-height: 400px;
position: relative;
background: transparent;
}
/* Table Layout */
.keys-table {
overflow: hidden;
}
.table-header {
display: grid;
grid-template-columns: 200px 180px 1fr 120px 120px 100px 100px;
background: rgba(255, 255, 255, 0.08);
border-bottom: 1px solid var(--border-color);
}
.header-cell {
padding: 16px 12px;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.header-cell:last-child {
border-right: none;
}
.table-body {
background: rgba(15, 20, 40, 0.3);
}
.table-row {
display: grid;
grid-template-columns: 200px 180px 1fr 120px 120px 100px 100px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
transition: background 0.2s;
}
.table-row:hover {
background: rgba(255, 255, 255, 0.03);
}
.table-row:last-child {
border-bottom: none;
}
.table-cell {
padding: 16px 12px;
display: flex;
align-items: center;
border-right: 1px solid rgba(255, 255, 255, 0.03);
min-height: 60px;
}
.table-cell:last-child {
border-right: none;
}
/* Column Specific Styles */
.key-name-info {
display: flex;
flex-direction: column;
gap: 4px;
width: 100%;
}
.key-name {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.key-description {
font-size: 12px;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.key-prefix {
font-family: 'Monaco', 'Courier New', monospace;
font-size: 13px;
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.05);
padding: 4px 8px;
border-radius: 4px;
border: 1px solid var(--border-color);
}
.scopes-list {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.scope-tag {
display: inline-block;
padding: 2px 6px;
background: rgba(124, 58, 237, 0.1);
color: var(--accent-primary);
border-radius: 4px;
font-size: 12px;
font-family: 'Monaco', 'Courier New', monospace;
border: 1px solid rgba(124, 58, 237, 0.2);
}
.col-created,
.col-expires {
font-size: 13px;
color: var(--text-primary);
}
.status-badge {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-active {
background: rgba(34, 197, 94, 0.1);
color: var(--color-success);
border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-revoked {
background: rgba(239, 68, 68, 0.1);
color: var(--color-danger);
border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-expired {
background: rgba(245, 158, 11, 0.1);
color: var(--color-warning);
border: 1px solid rgba(245, 158, 11, 0.2);
}
/* Modal Styles */
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: var(--z-modal);
padding: 20px;
}
.modal-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px) saturate(180%) brightness(0.7);
}
.modal-content {
position: relative;
max-width: 500px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
background: rgba(15, 20, 35, 0.5);
backdrop-filter: blur(60px);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: scale(0.95) translateY(-20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 20px;
margin-bottom: 20px;
border-bottom: 1px solid var(--border-color);
gap: 15px;
background: rgba(255, 255, 255, 0.02);
}
.modal-header h2 {
margin: 0;
font-size: 20px;
font-weight: 600;
color: var(--text-primary);
}
.modal-close {
background: transparent;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 8px;
border-radius: var(--radius-sm);
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.modal-close:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.modal-close i {
font-size: 20px;
}
.modal-body {
padding: 0 24px;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 20px 24px 24px 24px;
border-top: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.02);
margin-top: 24px;
}
/* Form Styles */
.form-grid {
display: flex;
flex-direction: column;
gap: 20px;
}
.field {
display: flex;
flex-direction: column;
gap: 8px;
}
.field label {
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.field input[type="text"],
.field input[type="datetime-local"],
.field textarea {
padding: 12px 16px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
font-family: inherit;
transition: all 0.2s;
resize: vertical;
}
.field input:focus,
.field textarea:focus {
outline: none;
border-color: var(--accent-primary);
background: rgba(255, 255, 255, 0.08);
}
.field input::placeholder,
.field textarea::placeholder {
color: rgba(255, 255, 255, 0.4);
}
/* Two-Tier Permissions Selector */
.permissions-container {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Access Level Selector */
.access-level-selector {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.access-option {
position: relative;
}
.access-option input[type="radio"] {
display: none;
}
.access-label {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.access-label::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(79, 70, 229, 0.05));
opacity: 0;
transition: opacity 0.3s ease;
}
.access-label:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(124, 58, 237, 0.3);
transform: translateY(-1px);
}
.access-label:hover::before {
opacity: 1;
}
.access-option input:checked+.access-label {
background: rgba(124, 58, 237, 0.1);
border-color: var(--accent-primary);
box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2);
}
.access-option input:checked+.access-label::before {
opacity: 1;
}
.access-icon {
font-size: 18px;
flex-shrink: 0;
position: relative;
z-index: 1;
color: var(--accent-primary);
}
.access-text {
flex: 1;
position: relative;
z-index: 1;
}
.access-title {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 2px;
}
.access-subtitle {
font-size: 12px;
color: var(--text-secondary);
}
/* Detailed Permissions */
.detailed-permissions {
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 1;
max-height: 500px;
}
.detailed-permissions.hidden {
opacity: 0;
max-height: 0;
margin-top: 0;
pointer-events: none;
}
.permissions-list {
display: flex;
flex-direction: column;
gap: 8px;
animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.permission-item {
cursor: pointer;
}
.permission-item input {
display: none;
}
.permission-content {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: rgba(255, 255, 255, 0.03);
border: 2px solid var(--border-color);
border-radius: var(--radius-sm);
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
min-height: 60px;
}
.permission-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(79, 70, 229, 0.08));
opacity: 0;
transition: opacity 0.3s ease;
}
.permission-item:hover .permission-content {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(124, 58, 237, 0.4);
transform: translateY(-1px);
}
.permission-item:hover .permission-content::before {
opacity: 1;
}
.permission-item input:checked+.permission-content {
background: rgba(124, 58, 237, 0.15);
border-color: var(--accent-primary);
box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.permission-item input:checked+.permission-content::before {
opacity: 1;
}
.permission-icon {
font-size: 20px;
color: var(--accent-primary);
position: relative;
z-index: 1;
flex-shrink: 0;
width: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.permission-details {
flex: 1;
position: relative;
z-index: 1;
}
.permission-title {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 2px;
}
.permission-description {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.4;
}
/* Scopes */
.scopes {
display: flex;
flex-direction: column;
gap: 8px;
}
.scope {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.2s;
font-size: 14px;
color: var(--text-primary);
}
.scope:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.15);
}
.scope input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: var(--accent-primary);
}
.scope:has(input:checked) {
background: rgba(124, 58, 237, 0.1);
border-color: rgba(124, 58, 237, 0.3);
}
/* Success Modal Styles */
.key-success-modal .success-content {
text-align: center;
padding: 8px 0;
}
.key-success-modal .modal-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: 20px 21px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.02);
}
.key-success-modal .modal-title-section-success {
display: flex;
align-items: center;
gap: 16px;
}
.key-success-modal .modal-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
margin: auto;
flex-shrink: 0;
}
.key-success-modal .success-icon {
background: rgba(34, 197, 94, 0.1);
color: var(--color-success);
border: 2px solid rgba(34, 197, 94, 0.2);
}
.key-success-modal .modal-title {
font-size: 24px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 4px 0;
line-height: 1.2;
}
.key-success-modal .modal-subtitle {
font-size: 14px;
color: var(--text-secondary);
margin: 0;
line-height: 1.4;
}
.key-success-modal .modal-close {
background: none;
border: none;
color: var(--text-secondary);
font-size: 24px;
cursor: pointer;
padding: 8px;
border-radius: 8px;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
.key-success-modal .modal-close:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-primary);
}
.key-success-modal .modal-body {
padding: 28px 32px 32px;
}
.token-display {
display: flex;
align-items: stretch;
gap: 0;
margin-bottom: 24px;
}
.token-input {
flex: 1;
padding: 12px 16px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid var(--border-color);
border-top-left-radius: var(--radius-sm);
border-bottom-left-radius: var(--radius-sm);
border-top-right-radius: 0;
border-bottom-right-radius: 0;
color: var(--text-primary);
font-family: 'Monaco', 'Courier New', monospace;
font-size: 13px;
transition: all 0.2s;
}
.token-input:hover {
background: rgba(0, 0, 0, 0.4);
border-color: var(--accent-primary);
}
.token-input:focus {
border-color: var(--accent-primary);
}
.copy-btn {
padding: 12px 16px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
border-left: none;
border-top-right-radius: var(--radius-sm);
border-bottom-right-radius: var(--radius-sm);
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
min-width: 44px;
}
.copy-btn:hover {
background: rgba(255, 255, 255, 0.12);
color: var(--text-primary);
border-color: var(--accent-primary);
}
.copy-btn i {
font-size: 16px;
}
.security-warnings {
display: flex;
flex-direction: column;
gap: 12px;
padding: 16px;
background: rgba(245, 158, 11, 0.05);
border: 1px solid rgba(245, 158, 11, 0.1);
border-radius: var(--radius-sm);
}
.warning-item {
display: flex;
align-items: center;
gap: 10px;
color: var(--color-warning);
font-size: 13px;
}
.warning-item i {
font-size: 16px;
flex-shrink: 0;
}
/* Loading and Empty States */
.loading {
display: flex;
align-items: center;
justify-content: center;
padding: 48px;
color: var(--text-secondary);
font-size: 14px;
}
.loading::after {
content: '';
width: 20px;
height: 20px;
margin-left: 12px;
border: 2px solid var(--border-color);
border-top-color: var(--accent-primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 300px;
color: var(--text-secondary);
font-size: 16px;
}
.empty-state {
text-align: center;
}
.empty-icon {
width: 80px;
height: 80px;
margin: 0 auto 24px;
border-radius: 50%;
background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
display: flex;
align-items: center;
justify-content: center;
color: var(--accent-primary);
}
.empty-icon i {
font-size: 36px;
}
.empty-title {
font-size: 24px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 12px 0;
}
.empty-message {
font-size: 16px;
color: var(--text-secondary);
line-height: 1.6;
margin: 0;
max-width: 440px;
margin-left: auto;
margin-right: auto;
}
/* Animations */
.fade-in {
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive Design */
@media (max-width: 1200px) {
.table-header,
.table-row {
grid-template-columns: 180px 160px 1fr 100px 100px 80px 80px;
}
}
@media (max-width: 992px) {
.table-header,
.table-row {
grid-template-columns: 150px 140px 1fr 90px 90px 70px 70px;
}
.header-cell,
.table-cell {
padding: 12px 8px;
font-size: 12px;
}
}
@media (max-width: 768px) {
.dashboard-content {
padding: 0;
display: flex;
flex-direction: column;
}
.page-header {
padding: 20px;
margin-bottom: 10px;
}
.page-header-content {
flex-direction: column;
gap: 0;
}
.page-header-actions {
justify-content: right;
width: 100%;
margin-top: 10px;
}
.keys-toolbar {
gap: 16px;
}
.toolbar-right {
justify-content: center;
}
/* Fix the container width to viewport */
.keys-container {
overflow: visible;
/* Allow dropdown to overflow */
max-width: 100vw;
/* Never exceed viewport width */
width: 100%;
/* Take full available width */
padding: 0;
border-radius: 0;
margin: 0;
flex: 1;
display: flex;
flex-direction: column;
}
.keys-toolbar {
overflow: visible;
/* Allow any dropdowns to overflow */
width: 100%;
padding: 20px 16px;
gap: 12px;
}
/* ONLY the keys-list-container should scroll horizontally */
.keys-list-container {
overflow-x: auto;
overflow-y: visible;
-webkit-overflow-scrolling: touch;
/* Smooth scrolling on iOS */
padding: 0;
/* Remove any padding that might interfere */
width: 100%;
/* Constrain to parent width */
max-width: 100%;
/* Never exceed parent */
flex: 1;
}
/* Style scrollbar */
.keys-list-container::-webkit-scrollbar {
height: 6px;
}
.keys-list-container::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 3px;
}
.keys-list-container::-webkit-scrollbar-thumb {
background: rgba(124, 58, 237, 0.6);
border-radius: 3px;
}
.keys-list-container::-webkit-scrollbar-thumb:hover {
background: rgba(124, 58, 237, 0.8);
}
/* Table stays in table format, just scrollable */
.keys-table {
min-width: 1100px;
/* Ensure table doesn't shrink below readable width */
width: max-content;
/* Let table be as wide as it needs */
}
/* Fix column widths - no minmax, just fixed widths */
.table-header,
.table-row {
grid-template-columns: 200px 180px 220px 130px 130px 100px 100px;
width: 100%;
}
/* Adjust font sizes for mobile */
.header-cell {
font-size: 11px;
padding: 12px 10px;
white-space: nowrap;
}
.table-cell {
padding: 14px 10px;
font-size: 13px;
}
.key-name {
font-size: 13px;
font-weight: 600;
}
.key-description {
font-size: 11px;
}
.key-prefix {
font-size: 12px;
}
.scope-tag {
font-size: 11px;
}
/* Make date columns compact */
.col-created,
.col-expires {
font-size: 12px;
}
/* Slightly smaller status badges */
.status-badge {
font-size: 10px;
padding: 3px 8px;
}
/* Empty state adjustments */
.empty {
min-width: 100%;
/* Prevent empty state from being cut off */
}
.modal-content {
max-width: 95vw;
margin: 20px;
}
/* Responsive permissions selector */
.access-level-selector {
grid-template-columns: 1fr;
gap: 8px;
}
.access-label {
padding: 12px;
}
.access-title {
font-size: 13px;
}
.access-subtitle {
font-size: 11px;
}
.permission-content {
padding: 10px 12px;
min-height: 50px;
}
.permission-icon {
font-size: 18px;
}
.permission-title {
font-size: 13px;
}
.permission-description {
font-size: 11px;
}
}
/* Delete Key Confirmation Modal (duplicated from links url-modal delete styles) */
#delete-key-modal {
display: none;
position: fixed;
inset: 0;
z-index: var(--z-max);
opacity: 0;
visibility: hidden;
transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#delete-key-modal.active {
display: flex;
opacity: 1;
visibility: visible;
}
#delete-key-modal .modal-container {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
padding: 20px;
position: relative;
z-index: 2;
background: rgba(0, 0, 0, 0.7);
-webkit-backdrop-filter: blur(10px) saturate(180%) brightness(0.7);
backdrop-filter: blur(10px) saturate(180%) brightness(0.7);
}
#delete-key-modal .modal-content {
backdrop-filter: blur(60px);
background: rgba(15, 20, 35, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
width: 100%;
max-width: 500px;
max-height: 90vh;
overflow: hidden;
transform: scale(0.85) translateY(20px);
opacity: 0;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#delete-key-modal.active .modal-content {
transform: scale(1) translateY(0);
opacity: 1;
}
#delete-key-modal .modal-header {
display: flex;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#delete-key-modal .modal-title-section-delete {
display: flex;
align-items: center;
gap: 12px;
}
#delete-key-modal .modal-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
flex-shrink: 0;
background: linear-gradient(135deg, #ef4444, #dc2626);
color: white;
}
#delete-key-modal .modal-title {
font-size: 20px;
font-weight: 600;
color: var(--text-primary);
margin: 0;
line-height: 1.3;
}
#delete-key-modal .modal-body {
padding: 20px 24px;
}
#delete-key-modal .modal-body p {
color: var(--text-secondary);
margin: 0;
line-height: 1.5;
font-size: 14px;
}
#delete-key-modal .modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
padding: 16px 24px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
gap: 10px;
}
#delete-key-modal .btn-cancel {
background: rgba(255, 255, 255, 0.1);
color: var(--text-secondary);
border-color: rgba(255, 255, 255, 0.2);
}
#delete-key-modal .btn-cancel:hover {
background: rgba(255, 255, 255, 0.15);
color: var(--text-primary);
border-color: rgba(255, 255, 255, 0.3);
}
#delete-key-modal .btn-delete {
background: var(--color-danger);
color: white;
border-color: var(--color-danger);
}
#delete-key-modal .btn-delete:hover:not(:disabled) {
background: var(--color-danger-hover);
border-color: var(--color-danger-hover);
}
@media (max-width: 768px) {
#delete-key-modal .modal-container {
padding: 16px;
}
#delete-key-modal .modal-content {
max-width: none;
max-height: 95vh;
}
#delete-key-modal .modal-body {
padding: 24px 20px;
}
#delete-key-modal .modal-footer {
padding: 20px;
flex-direction: column-reverse;
gap: 10px;
}
#delete-key-modal .modal-footer .btn {
width: 100%;
}
}
/* API Keys Page Specific Styles */
/* Page Header */
.page-header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.page-header-text {
flex: 1;
}
.page-header-actions {
display: flex;
gap: 12px;
align-items: center;
}
.page-header-actions .btn {
text-decoration: none;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
}
.page-header-actions .btn:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.2);
text-decoration: none;
}
/* Keys Container */
.keys-container {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
backdrop-filter: blur(20px);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
overflow: hidden;
}
/* Keys Toolbar */
.keys-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 24px;
border-bottom: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.02);
}
.toolbar-left h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: var(--text-primary);
}
.toolbar-right {
display: flex;
gap: 12px;
}
/* Button Styles */
.btn {
padding: 10px 16px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.2);
}
.btn-primary {
background: var(--accent-primary);
border-color: var(--accent-primary);
color: white;
}