1078 lines
22 KiB
CSS
1078 lines
22 KiB
CSS
/* ===== Reset & Base ===== */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
/* Deep dark premium background */
|
|
--bg-primary: #0a0a0f;
|
|
--bg-sidebar: rgba(255, 255, 255, 0.02);
|
|
--bg-card: rgba(255, 255, 255, 0.03);
|
|
--bg-card-border: rgba(255, 255, 255, 0.05);
|
|
--bg-input: rgba(255, 255, 255, 0.04);
|
|
--bg-input-focus: rgba(255, 255, 255, 0.08);
|
|
--bg-hover: rgba(255, 255, 255, 0.06);
|
|
|
|
/* Typography */
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #94a3b8;
|
|
--text-placeholder: #475569;
|
|
|
|
/* Vibrant Accents */
|
|
--accent: #8b5cf6;
|
|
--accent-hover: #a78bfa;
|
|
--accent-glow: rgba(139, 92, 246, 0.4);
|
|
--accent-secondary: #ec4899;
|
|
|
|
/* Status Colors */
|
|
--error: #ef4444;
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
|
|
/* Spatial */
|
|
--radius-sm: 10px;
|
|
--radius-md: 16px;
|
|
--transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
|
|
/* ===== Light Theme ===== */
|
|
[data-theme="light"] {
|
|
--bg-primary: #f8fafc;
|
|
--bg-sidebar: rgba(255, 255, 255, 0.7);
|
|
--bg-card: rgba(255, 255, 255, 0.7);
|
|
--bg-card-border: rgba(0, 0, 0, 0.08);
|
|
--bg-input: rgba(0, 0, 0, 0.03);
|
|
--bg-input-focus: rgba(0, 0, 0, 0.06);
|
|
--bg-hover: rgba(0, 0, 0, 0.05);
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #475569;
|
|
--text-placeholder: #94a3b8;
|
|
--accent: #6366f1;
|
|
--accent-hover: #4f46e5;
|
|
--accent-glow: rgba(99, 102, 241, 0.3);
|
|
--accent-secondary: #d946ef;
|
|
--error: #ef4444;
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
}
|
|
|
|
[data-theme="light"] .form-group select option,
|
|
[data-theme="light"] .filter-row select option {
|
|
background: #fff;
|
|
color: #1a1a2e;
|
|
}
|
|
|
|
[data-theme="light"] .nav-item.active {
|
|
background: rgba(99, 102, 241, 0.18);
|
|
}
|
|
|
|
[data-theme="light"] .custom-multi-select .dropdown-menu {
|
|
background: rgba(255, 255, 255, 0.98);
|
|
}
|
|
|
|
[data-theme="light"] .form-group input,
|
|
[data-theme="light"] .form-group select,
|
|
[data-theme="light"] .filter-row select {
|
|
border-color: rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
[data-theme="light"] tbody td {
|
|
border-bottom-color: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
transition: background 0.4s ease, color 0.4s ease;
|
|
}
|
|
|
|
/* ===== Sidebar ===== */
|
|
.sidebar {
|
|
width: 260px;
|
|
min-height: 100vh;
|
|
background: var(--bg-sidebar);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-right: 1px solid var(--bg-card-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
z-index: 10;
|
|
transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 1.25rem;
|
|
border-bottom: 1px solid var(--bg-card-border);
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem 1rem;
|
|
margin-bottom: 0.25rem;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
transition: all var(--transition);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nav-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--accent);
|
|
border-radius: 0 4px 4px 0;
|
|
transform: scaleY(0);
|
|
transition: transform var(--transition);
|
|
opacity: 0;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: rgba(139, 92, 246, 0.12);
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
.nav-item.active::before {
|
|
transform: scaleY(1);
|
|
opacity: 1;
|
|
}
|
|
|
|
.nav-item svg {
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.nav-item:hover svg,
|
|
.nav-item.active svg {
|
|
transform: scale(1.15) rotate(-5deg);
|
|
}
|
|
|
|
/* Checkbox list styling */
|
|
.checkbox-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.checkbox-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-base);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-item input[type="checkbox"] {
|
|
cursor: pointer;
|
|
width: 16px;
|
|
height: 16px;
|
|
accent-color: var(--primary-color);
|
|
}
|
|
|
|
/* Classroom Status Badges */
|
|
.badge-available {
|
|
background-color: var(--success-bg);
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.badge-unavailable {
|
|
background-color: var(--error-bg);
|
|
color: var(--error-color);
|
|
}
|
|
|
|
.status-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-icon-toggle {
|
|
background: var(--bg-body);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-muted);
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
padding: 0;
|
|
}
|
|
|
|
.btn-icon-toggle:hover {
|
|
background: var(--card-bg);
|
|
border-color: var(--primary-color);
|
|
color: var(--primary-color);
|
|
transform: rotate(45deg);
|
|
box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.btn-icon-toggle svg {
|
|
display: block;
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: rgba(99, 102, 241, 0.12);
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 0.75rem;
|
|
border-top: 1px solid var(--bg-card-border);
|
|
}
|
|
|
|
.btn-logout {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
padding: 0.65rem 0.8rem;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: none;
|
|
color: var(--text-secondary);
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
background: rgba(248, 113, 113, 0.1);
|
|
color: var(--error);
|
|
}
|
|
|
|
/* ===== Main ===== */
|
|
.main {
|
|
flex: 1;
|
|
margin-left: 260px;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.topbar {
|
|
padding: 1.5rem 2rem;
|
|
border-bottom: 1px solid var(--bg-card-border);
|
|
transition: border-color 0.4s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.topbar h1 {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
flex: 1;
|
|
}
|
|
|
|
.content {
|
|
padding: 1.5rem 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
/* ===== Cards ===== */
|
|
@keyframes slideUpCard {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(15px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.card {
|
|
background: var(--bg-card);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--bg-card-border);
|
|
border-radius: var(--radius-md);
|
|
padding: 1.75rem;
|
|
position: relative;
|
|
overflow: visible;
|
|
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
animation: slideUpCard 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
|
|
opacity: 0;
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
|
|
border-color: rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Staggered cards */
|
|
.card:nth-child(1) {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
.card:nth-child(2) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.card:nth-child(3) {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
/* Specific Cards */
|
|
.create-card {
|
|
z-index: 10;
|
|
}
|
|
|
|
.card h2 {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
/* ===== Create Form ===== */
|
|
.form-row {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
flex: 1;
|
|
min-width: 160px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 0.4rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--bg-card-border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
outline: none;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.form-group input::placeholder {
|
|
color: var(--text-placeholder);
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus {
|
|
background: var(--bg-input-focus);
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 4px var(--accent-glow);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.form-group input:focus::placeholder {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Hide Number Arrows */
|
|
input[type="number"]::-webkit-outer-spin-button,
|
|
input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
input[type="number"] {
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.form-group select {
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.75rem center;
|
|
padding-right: 2.25rem;
|
|
}
|
|
|
|
.form-group select option {
|
|
background: #1a1a2e;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-create {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 0.75rem 1.75rem;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
color: #fff;
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: all var(--transition);
|
|
box-shadow: 0 4px 15px var(--accent-glow);
|
|
}
|
|
|
|
.btn-create::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
|
|
border-radius: inherit;
|
|
opacity: 0;
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.btn-create:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px var(--accent-glow);
|
|
}
|
|
|
|
.btn-create:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.btn-create:active {
|
|
transform: translateY(1px);
|
|
box-shadow: 0 2px 10px var(--accent-glow);
|
|
}
|
|
|
|
@keyframes slideDownAlert {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.form-alert {
|
|
display: none;
|
|
padding: 0.6rem 1rem;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.85rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.form-alert.error {
|
|
display: block;
|
|
background: rgba(248, 113, 113, 0.1);
|
|
border: 1px solid rgba(248, 113, 113, 0.2);
|
|
color: var(--error);
|
|
animation: slideDownAlert 0.3s ease-out both;
|
|
}
|
|
|
|
.form-alert.success {
|
|
display: block;
|
|
background: rgba(52, 211, 153, 0.1);
|
|
border: 1px solid rgba(52, 211, 153, 0.2);
|
|
color: var(--success);
|
|
animation: slideDownAlert 0.3s ease-out both;
|
|
}
|
|
|
|
/* ===== Table ===== */
|
|
.table-wrap {
|
|
overflow-x: visible;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead th {
|
|
text-align: left;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
padding: 0.6rem 0.8rem;
|
|
border-bottom: 1px solid var(--bg-card-border);
|
|
}
|
|
|
|
tbody td {
|
|
padding: 0.85rem 1rem;
|
|
font-size: 0.95rem;
|
|
border-bottom: 1px solid var(--bg-card-border);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
@keyframes slideInRow {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideInRow {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
tbody tr {
|
|
transition: background var(--transition);
|
|
animation: slideInRow 0.3s ease-out both;
|
|
}
|
|
|
|
tbody tr:nth-child(1) {
|
|
animation-delay: 0.05s;
|
|
}
|
|
|
|
tbody tr:nth-child(2) {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
tbody tr:nth-child(3) {
|
|
animation-delay: 0.15s;
|
|
}
|
|
|
|
tbody tr:nth-child(4) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
tbody tr:nth-child(5) {
|
|
animation-delay: 0.25s;
|
|
}
|
|
|
|
tbody tr:nth-child(n+6) {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.loading-row {
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
padding: 2rem !important;
|
|
}
|
|
|
|
/* ===== Role Badges ===== */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 0.2rem 0.6rem;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.badge-admin {
|
|
background: rgba(248, 113, 113, 0.15);
|
|
color: var(--error);
|
|
}
|
|
|
|
.badge-teacher {
|
|
background: rgba(251, 191, 36, 0.15);
|
|
color: var(--warning);
|
|
}
|
|
|
|
.badge-student {
|
|
background: rgba(52, 211, 153, 0.15);
|
|
color: var(--success);
|
|
}
|
|
|
|
/* ===== Education Form Badge ===== */
|
|
.badge-ef {
|
|
background: rgba(99, 102, 241, 0.15);
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
/* ===== Card Header Row ===== */
|
|
.card-header-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-header-row h2 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.filter-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.filter-row label {
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.filter-row select {
|
|
padding: 0.45rem 2rem 0.45rem 0.7rem;
|
|
background: var(--bg-input);
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.6rem center;
|
|
transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
|
|
}
|
|
|
|
.filter-row select:focus {
|
|
background-color: var(--bg-input-focus);
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-glow);
|
|
}
|
|
|
|
.filter-row select option {
|
|
background: #1a1a2e;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ===== Tab Content ===== */
|
|
.tab-content {
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(4px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* ===== Delete Button ===== */
|
|
.btn-delete {
|
|
padding: 0.35rem 0.7rem;
|
|
background: rgba(248, 113, 113, 0.1);
|
|
border: 1px solid rgba(248, 113, 113, 0.2);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--error);
|
|
font-family: inherit;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
transition: background var(--transition), transform var(--transition);
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: rgba(248, 113, 113, 0.2);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* ===== Ripple Effect ===== */
|
|
.ripple {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
transform: scale(0);
|
|
animation: admin-ripple 0.6s linear;
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes admin-ripple {
|
|
to {
|
|
transform: scale(4);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* ===== Mobile Menu Toggle ===== */
|
|
.menu-toggle {
|
|
display: none;
|
|
padding: 0.4rem;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.menu-toggle:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ===== Sidebar Overlay ===== */
|
|
.sidebar-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 9;
|
|
backdrop-filter: blur(2px);
|
|
}
|
|
|
|
/* ===== Theme Toggle Button ===== */
|
|
.theme-toggle {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--bg-card-border);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
transition: all var(--transition);
|
|
z-index: 100;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
transition: transform 0.4s ease;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 4px 16px var(--accent-glow);
|
|
}
|
|
|
|
.theme-toggle:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* ===== Custom Multi Select ===== */
|
|
.custom-multi-select {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.custom-multi-select .select-box {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--bg-card-border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.custom-multi-select .select-box.active {
|
|
background: var(--bg-input-focus);
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 4px var(--accent-glow);
|
|
}
|
|
|
|
.custom-multi-select .dropdown-icon {
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.custom-multi-select .select-box.active .dropdown-icon {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.custom-multi-select .dropdown-menu {
|
|
position: absolute;
|
|
top: calc(100% + 5px);
|
|
left: 0;
|
|
width: 100%;
|
|
background: rgba(15, 15, 26, 0.98);
|
|
backdrop-filter: blur(24px);
|
|
-webkit-backdrop-filter: blur(24px);
|
|
border: 1px solid var(--bg-card-border);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
padding: 0.75rem;
|
|
z-index: 9999;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-10px);
|
|
transition: all var(--transition);
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.custom-multi-select .dropdown-menu.open {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.checkbox-group-vertical {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.checkbox-group-vertical .checkbox-item {
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
transition: background var(--transition);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-group-vertical .checkbox-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* ===== Modals ===== */
|
|
.modal-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
backdrop-filter: blur(2px);
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.modal-overlay.open {
|
|
display: flex;
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--bg-card-border);
|
|
border-radius: var(--radius-md);
|
|
padding: 2rem;
|
|
width: 100%;
|
|
max-width: 600px;
|
|
position: relative;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.modal-content h2 {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary);
|
|
border-bottom: 1px solid var(--bg-card-border);
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 1.5rem;
|
|
right: 1.5rem;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--error);
|
|
}
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
width: 240px;
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s ease;
|
|
z-index: 20;
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.sidebar-overlay.open {
|
|
display: block;
|
|
}
|
|
|
|
.menu-toggle {
|
|
display: flex;
|
|
}
|
|
|
|
.main {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.topbar {
|
|
padding: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.topbar h1 {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.content {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.card {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.form-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
min-width: 0;
|
|
}
|
|
|
|
.btn-create {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
tbody td {
|
|
padding: 0.5rem 0.6rem;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
thead th {
|
|
padding: 0.5rem 0.6rem;
|
|
font-size: 0.72rem;
|
|
}
|
|
|
|
.table-wrap {
|
|
margin: 0 -1rem;
|
|
padding: 0 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.topbar h1 {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.badge {
|
|
font-size: 0.65rem;
|
|
padding: 0.15rem 0.45rem;
|
|
}
|
|
|
|
.btn-delete {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.72rem;
|
|
}
|
|
} |