Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 1s
245 lines
4.6 KiB
CSS
245 lines
4.6 KiB
CSS
/* Modern Dark Theme with Glassmorphism */
|
|
:root {
|
|
--bg-color: #0f172a;
|
|
--text-color: #e2e8f0;
|
|
--primary-color: #6366f1;
|
|
--primary-hover: #4f46e5;
|
|
--secondary-color: #10b981;
|
|
--surface-color: rgba(30, 41, 59, 0.7);
|
|
--border-color: rgba(148, 163, 184, 0.1);
|
|
--error-color: #ef4444;
|
|
--glass-bg: rgba(30, 41, 59, 0.6);
|
|
--glass-border: rgba(255, 255, 255, 0.1);
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 1.6;
|
|
background-image:
|
|
radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
|
|
radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
|
|
background-attachment: fixed;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
color: #f8fafc;
|
|
margin-bottom: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Layout */
|
|
.container {
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Cards / Glassmorphism */
|
|
.card {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
margin-bottom: 2rem;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* Forms */
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-width: 500px;
|
|
}
|
|
|
|
label {
|
|
font-weight: 500;
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="email"],
|
|
input[type="password"],
|
|
input[type="number"],
|
|
select,
|
|
textarea {
|
|
background: rgba(15, 23, 42, 0.6);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 0.5rem;
|
|
padding: 0.75rem;
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
/* Buttons */
|
|
button,
|
|
input[type="submit"],
|
|
.btn {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, transform 0.1s;
|
|
display: inline-block;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button:hover,
|
|
input[type="submit"]:hover,
|
|
.btn:hover {
|
|
background-color: var(--primary-hover);
|
|
transform: translateY(-1px);
|
|
text-decoration: none;
|
|
}
|
|
|
|
button:active,
|
|
input[type="submit"]:active,
|
|
.btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: var(--error-color);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #dc2626;
|
|
}
|
|
|
|
/* Tables */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 1rem;
|
|
background: rgba(15, 23, 42, 0.3);
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
th {
|
|
background-color: rgba(30, 41, 59, 0.8);
|
|
font-weight: 600;
|
|
color: #f8fafc;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
/* Alerts */
|
|
.alert {
|
|
padding: 1rem;
|
|
border-radius: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: rgba(239, 68, 68, 0.1);
|
|
border-color: rgba(239, 68, 68, 0.2);
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: rgba(16, 185, 129, 0.1);
|
|
border-color: rgba(16, 185, 129, 0.2);
|
|
color: #6ee7b7;
|
|
}
|
|
|
|
/* Login Page Specific */
|
|
.login-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.mt-4 {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.mb-4 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.gap-2 {
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Mobile Responsiveness */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.flex {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Stack buttons on very small screens if needed, or keep wrapped */
|
|
.flex > .btn {
|
|
flex: 1 1 auto; /* Allow buttons to grow and fill width */
|
|
text-align: center;
|
|
}
|
|
|
|
form {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Table Wrapper class to be added in PHP */
|
|
.table-responsive {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* Ensure table doesn't force width */
|
|
table {
|
|
min-width: 600px; /* Force scroll if content is squished */
|
|
}
|
|
}
|