653 lines
11 KiB
CSS
653 lines
11 KiB
CSS
:root {
|
|
--primary: #4f46e5;
|
|
--primary-hover: #4338ca;
|
|
--primary-light: rgba(79, 70, 229, 0.1);
|
|
--success: #10b981;
|
|
--success-light: rgba(16, 185, 129, 0.15);
|
|
--danger: #ef4444;
|
|
--danger-light: rgba(239, 68, 68, 0.15);
|
|
--warning: #f59e0b;
|
|
|
|
--dark: #0f172a;
|
|
--gray-900: #f8fafc;
|
|
--gray-800: #e2e8f0;
|
|
--gray-200: #e2e8f0;
|
|
--light: #1e293b;
|
|
--white: #ffffff;
|
|
|
|
--glass-bg: rgba(255, 255, 255, 0.7);
|
|
--glass-border: rgba(255, 255, 255, 0.5);
|
|
--glass-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
|
|
--font-heading: 'Outfit', sans-serif;
|
|
--font-body: 'Inter', sans-serif;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
|
|
color: var(--light);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Glassmorphism Classes */
|
|
.glass-card {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 16px;
|
|
box-shadow: var(--glass-shadow);
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes pulse {
|
|
0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
|
|
70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
|
|
100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
|
|
}
|
|
|
|
.pulse-animation {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 260px;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border-right: 1px solid var(--glass-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 24px 0;
|
|
z-index: 10;
|
|
box-shadow: var(--glass-shadow);
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 0 24px 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: linear-gradient(135deg, #4cc9f0, var(--primary));
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
color: white;
|
|
}
|
|
|
|
.sidebar-header h2 {
|
|
font-family: var(--font-heading);
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 0 16px;
|
|
flex: 1;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 12px 16px;
|
|
border-radius: 10px;
|
|
color: var(--dark);
|
|
opacity: 0.7;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.nav-item i {
|
|
font-size: 18px;
|
|
width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--white);
|
|
color: var(--primary);
|
|
opacity: 1;
|
|
transform: translateX(4px);
|
|
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
|
|
color: var(--white);
|
|
opacity: 1;
|
|
box-shadow: var(--glass-shadow);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.logout-btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: transparent;
|
|
border: 1px solid var(--glass-border);
|
|
color: #a0aec0;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
font-family: var(--font-body);
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: var(--danger-light);
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex: 1;
|
|
padding: 20px 24px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.top-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
animation: fadeIn 0.5s ease-out;
|
|
}
|
|
|
|
.header-title h1 {
|
|
font-family: var(--font-heading);
|
|
font-size: 32px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.header-title p {
|
|
color: #a0aec0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.primary-btn {
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 10px;
|
|
font-family: var(--font-body);
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
|
|
}
|
|
|
|
.primary-btn:hover {
|
|
background: var(--primary-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
|
|
}
|
|
|
|
.secondary-btn {
|
|
background: var(--white);
|
|
color: var(--dark);
|
|
border: 1px solid var(--gray-800);
|
|
padding: 12px 24px;
|
|
border-radius: 10px;
|
|
font-family: var(--font-body);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.secondary-btn:hover {
|
|
background: var(--gray-900);
|
|
}
|
|
|
|
.icon-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: #a0aec0;
|
|
cursor: pointer;
|
|
padding: 6px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
color: var(--white);
|
|
background: var(--glass-bg);
|
|
}
|
|
|
|
.icon-btn.delete:hover {
|
|
color: var(--danger);
|
|
background: var(--danger-light);
|
|
}
|
|
|
|
/* Stats */
|
|
.dashboard-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 24px;
|
|
margin-bottom: 40px;
|
|
animation: fadeIn 0.6s ease-out;
|
|
}
|
|
|
|
.stat-card {
|
|
padding: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.bg-blue { background: rgba(67, 97, 238, 0.15); color: #4cc9f0; }
|
|
.bg-green { background: var(--success-light); color: var(--success); }
|
|
.bg-red { background: var(--danger-light); color: var(--danger); }
|
|
|
|
.stat-info h3 {
|
|
font-size: 14px;
|
|
color: #a0aec0;
|
|
font-weight: 500;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-info p {
|
|
font-family: var(--font-heading);
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Table */
|
|
.data-section {
|
|
padding: 24px;
|
|
animation: fadeIn 0.7s ease-out;
|
|
}
|
|
|
|
.table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.modern-table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0 8px;
|
|
}
|
|
|
|
.modern-table th {
|
|
text-align: left;
|
|
padding: 0 16px 12px;
|
|
color: #a0aec0;
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.modern-table td {
|
|
padding: 10px 16px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.modern-table tr td:first-child {
|
|
border-radius: 10px 0 0 10px;
|
|
}
|
|
|
|
.modern-table tr td:last-child {
|
|
border-radius: 0 10px 10px 0;
|
|
}
|
|
|
|
.modern-table tbody tr {
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.modern-table tbody tr:hover td {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
/* Status Badge */
|
|
.status-badge {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.status-active {
|
|
background: var(--success-light);
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-inactive {
|
|
background: var(--danger-light);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.token-blur {
|
|
filter: blur(4px);
|
|
transition: filter 0.3s;
|
|
cursor: pointer;
|
|
font-family: monospace;
|
|
background: rgba(0,0,0,0.2);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.token-blur:hover {
|
|
filter: blur(0);
|
|
}
|
|
|
|
/* Modals */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(5px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 100;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.modal.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 90%;
|
|
height: 98vh;
|
|
max-width: unset;
|
|
max-height: unset;
|
|
padding: 0;
|
|
transform: scale(0.95);
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.modal.active .modal-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0;
|
|
padding: 20px 28px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.modal-body-inner {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 28px;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-family: var(--font-heading);
|
|
}
|
|
|
|
.modal-close {
|
|
background: transparent;
|
|
border: none;
|
|
color: #a0aec0;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* Forms */
|
|
.modern-form .form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.modern-form label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.input-with-icon {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.input-with-icon i {
|
|
position: absolute;
|
|
left: 16px;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.input-with-icon input {
|
|
width: 100%;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border: 1px solid var(--glass-border);
|
|
color: white;
|
|
padding: 14px 16px 14px 45px;
|
|
border-radius: 10px;
|
|
font-family: var(--font-body);
|
|
font-size: 15px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.input-with-icon input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
background: rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.form-group small {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: #718096;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 16px;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
/* Success Modal */
|
|
.success-modal {
|
|
text-align: center;
|
|
}
|
|
|
|
.success-icon {
|
|
font-size: 64px;
|
|
color: var(--success);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.success-modal h2 {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.success-modal p {
|
|
color: #a0aec0;
|
|
margin-bottom: 24px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.token-container {
|
|
background: rgba(0, 0, 0, 0.3);
|
|
padding: 16px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border: 1px solid var(--primary-light);
|
|
}
|
|
|
|
.token-container code {
|
|
font-family: monospace;
|
|
font-size: 16px;
|
|
color: #4cc9f0;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Toast */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
padding: 16px 24px;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(12px);
|
|
border-left: 4px solid var(--primary);
|
|
color: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
|
transform: translateX(120%);
|
|
transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.toast.show {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.toast.error {
|
|
border-left-color: var(--danger);
|
|
}
|
|
|
|
.toast.success {
|
|
border-left-color: var(--success);
|
|
}
|
|
|
|
.loading-cell {
|
|
text-align: center;
|
|
padding: 40px !important;
|
|
color: #a0aec0;
|
|
}
|
|
|
|
.spinner {
|
|
width: 30px;
|
|
height: 30px;
|
|
border: 3px solid rgba(255,255,255,0.1);
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 16px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Custom Switch Toggle */
|
|
.toggle-switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 44px;
|
|
height: 24px;
|
|
}
|
|
|
|
.toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background-color: rgba(255,255,255,0.1);
|
|
transition: .4s;
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: #a0aec0;
|
|
transition: .4s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: var(--success);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(20px);
|
|
background-color: white;
|
|
}
|