๐ Source: style.css
/* ==========================================================================
Atestat Dashboard ยท style.css
Themes: light, dark, oled, galaxy
========================================================================== */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
body {
font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
padding: 12px;
min-height: 100vh;
background: var(--bg);
color: var(--text);
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* ---------- THEMES ---------- */
body.theme-light {
--bg: #eef1f5;
--surface: #ffffff;
--surface-alt: #f7f9fc;
--surface-hover: #eef3fb;
--border: #d8dee6;
--border-strong: #c2cad6;
--text: #1f2933;
--text-muted: #5b6b7c;
--accent: #2563eb;
--accent-hover: #1d4ed8;
--accent-soft: #e0e9ff;
--danger: #dc2626;
--danger-hover: #b91c1c;
--success: #16a34a;
--header-bg: #ffffff;
--header-text: #1f2933;
--shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
--shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
--header-accent: #2563eb;
--btn-text: #ffffff;
}
body.theme-dark {
--bg: #16181d;
--surface: #1e2127;
--surface-alt: #24272e;
--surface-hover: #2b2f37;
--border: #33373f;
--border-strong: #3f434c;
--text: #e4e7eb;
--text-muted: #9aa4b2;
--accent: #60a5fa;
--accent-hover: #93c5fd;
--accent-soft: #1e3a5f;
--danger: #f87171;
--danger-hover: #ef4444;
--success: #4ade80;
--header-bg: #1e2127;
--header-text: #e4e7eb;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
--header-accent: #60a5fa;
--btn-text: #0f172a;
}
body.theme-oled {
--bg: #000000;
--surface: #0a0a0a;
--surface-alt: #121212;
--surface-hover: #1c1c1c;
--border: #262626;
--border-strong: #3a3a3a;
--text: #f5f5f5;
--text-muted: #8a8a8a;
--accent: #4ea8ff;
--accent-hover: #7cc0ff;
--accent-soft: #0a2a4a;
--danger: #ff6b6b;
--danger-hover: #ff3b3b;
--success: #34d399;
--header-bg: #0a0a0a;
--header-text: #f5f5f5;
--shadow: 0 1px 2px rgba(255, 255, 255, 0.02);
--shadow-lg: 0 8px 24px rgba(78, 168, 255, 0.15);
--header-accent: #4ea8ff;
--btn-text: #04172b;
}
body.theme-galaxy {
--bg: #0d0b1f;
--surface: #16122e;
--surface-alt: #1c1838;
--surface-hover: #241f45;
--border: #2e2854;
--border-strong: #3d356b;
--text: #e6e1ff;
--text-muted: #a99fd0;
--accent: #a78bfa;
--accent-hover: #c4b5fd;
--accent-soft: #2a1f5c;
--danger: #f472b6;
--danger-hover: #ec4899;
--success: #5eead4;
--header-bg: #16122e;
--header-text: #e6e1ff;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 8px 24px rgba(167, 139, 250, 0.2);
--header-accent: #a78bfa;
--btn-text: #1a0b3a;
}
/* ---------- LAYOUT ---------- */
.container {
max-width: 1600px;
margin: 0 auto;
}
.header {
background: var(--header-bg);
color: var(--header-text);
border: 1px solid var(--border);
border-radius: 4px;
overflow: hidden;
box-shadow: var(--shadow);
margin-bottom: 12px;
}
.header-inner {
padding: 16px 20px 12px;
border-bottom: 1px solid var(--border);
}
.header h1 {
font-size: 20px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--header-accent);
display: flex;
align-items: center;
gap: 10px;
}
.header h1 i {
font-size: 18px;
}
.header p {
font-size: 12px;
color: var(--text-muted);
margin-top: 3px;
}
.navbar {
display: flex;
align-items: center;
background: var(--surface-alt);
padding: 0 8px;
gap: 2px;
}
.navbar a {
color: var(--text);
padding: 9px 14px;
font-size: 13px;
display: inline-flex;
align-items: center;
gap: 6px;
border-bottom: 2px solid transparent;
transition: background 0.12s, border-color 0.12s;
}
.navbar a:hover {
background: var(--surface-hover);
border-bottom-color: var(--accent);
text-decoration: none;
}
.navbar a i {
font-size: 12px;
color: var(--text-muted);
}
.theme-switcher {
margin-left: auto;
display: flex;
align-items: center;
gap: 6px;
padding: 6px 8px;
}
.theme-label {
color: var(--text-muted);
font-size: 13px;
}
.theme-switcher select {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border);
border-radius: 3px;
padding: 4px 8px;
font-size: 12px;
font-family: inherit;
cursor: pointer;
}
.theme-switcher select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
}
/* ---------- ROW / PANELS ---------- */
.row {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 12px;
}
.panel {
flex: 1 1 calc(50% - 6px);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
min-height: 300px;
}
.panel-header {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: baseline;
justify-content: space-between;
background: var(--surface-alt);
}
.panel-header h2 {
font-size: 14px;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 8px;
}
.panel-header .path {
font-family: 'Consolas', 'Monaco', monospace;
font-size: 11px;
color: var(--text-muted);
background: var(--surface);
padding: 2px 8px;
border-radius: 3px;
border: 1px solid var(--border);
}
.panel-toolbar {
padding: 8px 12px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
background: var(--surface);
}
.panel-toolbar .file-input {
flex: 1;
min-width: 100px;
padding: 5px 8px;
font-size: 12px;
background: var(--surface-alt);
color: var(--text);
border: 1px solid var(--border);
border-radius: 3px;
font-family: 'Consolas', 'Monaco', monospace;
}
.panel-toolbar .file-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
}
/* ---------- BUTTONS ---------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 6px 12px;
background: var(--accent);
color: var(--btn-text);
border: 1px solid var(--accent);
border-radius: 3px;
font-size: 12px;
font-family: inherit;
cursor: pointer;
transition: background 0.12s, border-color 0.12s, color 0.12s;
white-space: nowrap;
}
.btn:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
text-decoration: none;
}
.btn-sm {
padding: 4px 9px;
font-size: 11px;
}
.btn-outline {
background: transparent;
color: var(--accent);
border-color: var(--border-strong);
}
.btn-outline:hover {
background: var(--accent-soft);
border-color: var(--accent);
color: var(--accent);
}
.btn-icon {
background: transparent;
border: 1px solid transparent;
color: var(--text-muted);
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 3px;
cursor: pointer;
font-size: 11px;
transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-icon:hover {
background: var(--surface-hover);
color: var(--accent);
border-color: var(--border);
}
.btn-icon.btn-danger-icon:hover {
color: var(--danger);
border-color: var(--danger);
background: rgba(220, 38, 38, 0.08);
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.spinning i {
animation: spin 0.5s ease-in-out;
}
/* ---------- FILE LIST ---------- */
.file-list {
flex: 1;
overflow-y: auto;
padding: 4px 0;
max-height: 460px;
}
.file-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 7px 14px;
border-bottom: 1px solid var(--border);
gap: 8px;
transition: background 0.12s;
}
.file-item:last-child {
border-bottom: none;
}
.file-item:hover {
background: var(--surface-hover);
}
.file-item.folder-item {
background: var(--surface-alt);
}
.file-item.folder-item:hover {
background: var(--surface-hover);
}
.file-name {
font-size: 13px;
color: var(--text);
font-family: 'Consolas', 'Monaco', monospace;
display: flex;
align-items: center;
gap: 8px;
word-break: break-all;
min-width: 0;
}
.file-name i {
width: 16px;
text-align: center;
color: var(--accent);
font-size: 13px;
flex-shrink: 0;
}
.file-item.folder-item .file-name i {
color: #d97706;
}
body.theme-dark .file-item.folder-item .file-name i,
body.theme-oled .file-item.folder-item .file-name i,
body.theme-galaxy .file-item.folder-item .file-name i {
color: #fbbf24;
}
.file-actions {
display: flex;
gap: 2px;
flex-shrink: 0;
}
.empty-state {
padding: 32px 16px;
text-align: center;
color: var(--text-muted);
font-size: 12px;
font-style: italic;
}
/* ---------- FOOTER ---------- */
.footer {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
padding: 12px 18px;
text-align: center;
box-shadow: var(--shadow);
}
.footer p {
font-size: 12px;
color: var(--text-muted);
}
.footer a {
color: var(--accent);
font-family: 'Consolas', 'Monaco', monospace;
}
/* ---------- MODALS ---------- */
.modal {
display: none;
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.65);
z-index: 2000;
justify-content: center;
align-items: center;
padding: 16px;
backdrop-filter: blur(2px);
}
.modal.active {
display: flex;
}
.modal-content {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
max-width: 900px;
width: 100%;
max-height: 88vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-lg);
color: var(--text);
}
.modal-sm {
max-width: 380px;
}
.modal-header {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
background: var(--surface-alt);
border-radius: 4px 4px 0 0;
}
.modal-header h3 {
font-size: 14px;
font-weight: 600;
color: var(--text);
font-family: 'Consolas', 'Monaco', monospace;
word-break: break-all;
}
.close-modal {
background: none;
border: none;
font-size: 22px;
line-height: 1;
cursor: pointer;
color: var(--text-muted);
padding: 0 4px;
transition: color 0.12s;
}
.close-modal:hover {
color: var(--danger);
}
.modal-body {
flex: 1;
overflow: auto;
display: flex;
flex-direction: column;
background: var(--surface-alt);
}
.modal-code {
flex: 1;
overflow: auto;
padding: 16px;
margin: 0;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
line-height: 1.55;
background: var(--surface-alt);
color: var(--text);
white-space: pre-wrap;
word-break: break-all;
}
.modal-embed {
width: 100%;
height: 70vh;
border: none;
background: #fff;
}
.modal-image {
max-width: 100%;
max-height: 70vh;
display: block;
margin: 16px auto;
border: 1px solid var(--border);
}
.binary-notice {
padding: 40px 24px;
text-align: center;
color: var(--text);
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}
.binary-notice i {
font-size: 48px;
color: var(--accent);
margin-bottom: 8px;
}
.binary-notice p {
margin: 2px 0;
font-size: 13px;
}
.binary-notice .muted {
color: var(--text-muted);
font-size: 12px;
font-family: 'Consolas', 'Monaco', monospace;
}
.modal-footer {
padding: 10px 16px;
border-top: 1px solid var(--border);
display: flex;
gap: 8px;
justify-content: flex-end;
background: var(--surface-alt);
border-radius: 0 0 4px 4px;
}
.folder-input {
width: calc(100% - 32px);
margin: 16px;
padding: 8px 10px;
font-size: 13px;
background: var(--surface-alt);
color: var(--text);
border: 1px solid var(--border);
border-radius: 3px;
font-family: 'Consolas', 'Monaco', monospace;
}
.folder-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-soft);
}
/* ---------- TOAST ---------- */
@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
.toast {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--success);
color: #fff;
padding: 10px 18px;
border-radius: 4px;
font-size: 13px;
z-index: 3000;
box-shadow: var(--shadow-lg);
animation: slideIn 0.25s ease;
max-width: 320px;
}
.toast.error {
background: var(--danger);
}
/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 820px) {
body { padding: 8px; }
.row { flex-direction: column; }
.panel { flex: 1 1 100%; }
.navbar { flex-wrap: wrap; }
.theme-switcher { margin-left: 0; padding: 6px 8px; }
.header-inner { padding: 14px 16px; }
.file-list { max-height: 320px; }
.modal-embed { height: 55vh; }
.modal-image { max-height: 55vh; }
}
/* ---------- SCROLLBARS ---------- */
.file-list::-webkit-scrollbar,
.modal-code::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.file-list::-webkit-scrollbar-track,
.modal-code::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
background: var(--surface-alt);
}
.file-list::-webkit-scrollbar-thumb,
.modal-code::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
background: var(--border-strong);
border-radius: 4px;
}
.file-list::-webkit-scrollbar-thumb:hover,
.modal-code::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
::selection {
background: var(--accent);
color: #fff;
}
/* ==========================================================================
ADDITIONS / CHANGES for style.css
========================================================================== */
/* ---------- SELECT CHECKBOX (appears in select mode) ---------- */
.select-checkbox {
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 10px;
cursor: pointer;
flex-shrink: 0;
}
.select-checkbox input[type="checkbox"] {
width: 15px;
height: 15px;
accent-color: var(--accent);
cursor: pointer;
margin: 0;
}
/* ---------- CONFIRMING DELETE BUTTON ---------- */
.btn-icon.confirming {
background: var(--danger) !important;
color: #fff !important;
border-color: var(--danger) !important;
width: auto !important;
padding: 0 8px !important;
font-size: 11px !important;
gap: 4px;
font-family: inherit;
animation: pulseConfirm 0.9s ease-in-out infinite alternate;
}
.btn-icon.confirming:hover {
background: var(--danger-hover) !important;
border-color: var(--danger-hover) !important;
}
.btn-icon.confirming i {
font-size: 10px;
}
@keyframes pulseConfirm {
from { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
to { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}
/* ---------- TOOLBAR SELECT INFO ---------- */
.select-info {
font-size: 12px;
color: var(--text-muted);
padding: 4px 8px;
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: 3px;
font-family: 'Consolas', 'Monaco', monospace;
white-space: nowrap;
}
/* ---------- BATCH DELETE MODAL ---------- */
.batch-body {
padding: 16px 18px;
color: var(--text);
}
.batch-lead {
font-size: 13px;
margin-bottom: 10px;
}
.batch-lead strong {
color: var(--danger);
}
.batch-list {
list-style: none;
max-height: 220px;
overflow-y: auto;
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: 3px;
padding: 6px 0;
margin: 8px 0 12px;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
}
.batch-list li {
padding: 5px 12px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid var(--border);
word-break: break-all;
}
.batch-list li:last-child {
border-bottom: none;
}
.batch-list li i {
color: var(--danger);
font-size: 11px;
flex-shrink: 0;
}
.batch-warn {
font-size: 12px;
color: var(--text-muted);
font-style: italic;
}
/* ---------- Ensure file-item supports checkbox column ---------- */
.file-item {
/* (keep existing properties) */
padding: 7px 14px;
/* ... */
}
.file-item .file-name {
/* (keep existing) */
flex: 1;
min-width: 0;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.fa-spinner {
animation: spin 1s linear infinite;
}
/* Slightly larger modal embed to match preview needs */
.modal-embed {
width: 100%;
height: 75vh;
border: none;
background: #fff;
}
โ Back