289 lines
5.7 KiB
CSS
289 lines
5.7 KiB
CSS
/* admin.css - Updated to match index.html aesthetics */
|
|||
|
|
:root {
|
||
|
|
--primary-gradient: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
|
||
|
|
--glass-bg: rgba(255, 255, 255, 0.95);
|
||
|
|
--text-color: #333;
|
||
|
|
--heading-color: #2c3e50;
|
||
|
|
--success-color: #2ecc71;
|
||
|
|
--danger-color: #e74c3c;
|
||
|
|
--info-color: #3498db;
|
||
|
|
--radius-lg: 20px;
|
||
|
|
--radius-md: 12px;
|
||
|
|
--shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
|
||
|
|
--shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
font-family: 'Outfit', 'Segoe UI', sans-serif;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
background: var(--primary-gradient);
|
||
|
|
background-attachment: fixed;
|
||
|
|
min-height: 100vh;
|
||
|
|
padding: 30px 20px;
|
||
|
|
color: var(--text-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.admin-header {
|
||
|
|
max-width: 1200px;
|
||
|
|
margin: 0 auto 40px auto;
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.admin-header h2 {
|
||
|
|
font-size: 2.2rem;
|
||
|
|
font-weight: 700;
|
||
|
|
letter-spacing: -0.5px;
|
||
|
|
text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.admin-container {
|
||
|
|
max-width: 1200px;
|
||
|
|
margin: 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Management Cards - Glassmorphism */
|
||
|
|
.management-card {
|
||
|
|
background-color: rgba(255, 255, 255, 0.9);
|
||
|
|
backdrop-filter: blur(10px);
|
||
|
|
-webkit-backdrop-filter: blur(10px);
|
||
|
|
border-radius: var(--radius-lg);
|
||
|
|
box-shadow: var(--shadow-heavy);
|
||
|
|
padding: 40px;
|
||
|
|
margin-bottom: 40px;
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.card-title {
|
||
|
|
color: var(--heading-color);
|
||
|
|
margin-bottom: 20px;
|
||
|
|
font-size: 1.4rem;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Stats Cards */
|
||
|
|
.stats-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||
|
|
gap: 20px;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-card {
|
||
|
|
background: rgba(255, 255, 255, 0.85);
|
||
|
|
backdrop-filter: blur(5px);
|
||
|
|
-webkit-backdrop-filter: blur(5px);
|
||
|
|
padding: 25px;
|
||
|
|
border-radius: var(--radius-md);
|
||
|
|
box-shadow: var(--shadow-light);
|
||
|
|
text-align: center;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-card:hover {
|
||
|
|
transform: translateY(-5px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-card h3 {
|
||
|
|
font-size: 0.9rem;
|
||
|
|
color: #7f8c8d;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stat-card .value {
|
||
|
|
font-size: 2.5rem;
|
||
|
|
font-weight: 700;
|
||
|
|
margin-top: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Form Styles */
|
||
|
|
.inline-form {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
|
||
|
|
gap: 15px;
|
||
|
|
align-items: flex-end;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group label {
|
||
|
|
font-size: 0.9rem;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #555;
|
||
|
|
}
|
||
|
|
|
||
|
|
input,
|
||
|
|
select {
|
||
|
|
padding: 12px 15px;
|
||
|
|
border: 2px solid #eee;
|
||
|
|
border-radius: 10px;
|
||
|
|
font-size: 1rem;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
background-color: white;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
select {
|
||
|
|
cursor: pointer;
|
||
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2395a5a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
||
|
|
background-repeat: no-repeat;
|
||
|
|
background-position: right 15px center;
|
||
|
|
background-size: 18px;
|
||
|
|
padding-right: 45px;
|
||
|
|
-webkit-appearance: none;
|
||
|
|
-moz-appearance: none;
|
||
|
|
appearance: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
input:focus,
|
||
|
|
select:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--info-color);
|
||
|
|
box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Table Styles - Premium Look */
|
||
|
|
.table-container {
|
||
|
|
overflow-x: auto;
|
||
|
|
border-radius: var(--radius-md);
|
||
|
|
border: 1px solid #eee;
|
||
|
|
}
|
||
|
|
|
||
|
|
table {
|
||
|
|
width: 100%;
|
||
|
|
border-collapse: collapse;
|
||
|
|
background: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
th {
|
||
|
|
background-color: #f8f9fa;
|
||
|
|
padding: 15px;
|
||
|
|
text-align: left;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #555;
|
||
|
|
border-bottom: 2px solid #eee;
|
||
|
|
}
|
||
|
|
|
||
|
|
td {
|
||
|
|
padding: 15px;
|
||
|
|
border-bottom: 1px solid #eee;
|
||
|
|
vertical-align: middle;
|
||
|
|
}
|
||
|
|
|
||
|
|
tr:hover {
|
||
|
|
background-color: #fcfdfe;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Buttons - Matching index.html */
|
||
|
|
.btn {
|
||
|
|
padding: 12px 20px;
|
||
|
|
border-radius: 10px;
|
||
|
|
border: none;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary {
|
||
|
|
background-color: var(--info-color);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-success {
|
||
|
|
background-color: var(--success-color);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-danger {
|
||
|
|
background-color: var(--danger-color);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn:hover {
|
||
|
|
opacity: 0.9;
|
||
|
|
transform: translateY(-2px);
|
||
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn:active {
|
||
|
|
transform: translateY(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Badges */
|
||
|
|
.badge {
|
||
|
|
padding: 6px 12px;
|
||
|
|
border-radius: 20px;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
font-weight: 700;
|
||
|
|
text-transform: uppercase;
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge-success {
|
||
|
|
background-color: rgba(46, 204, 113, 0.15);
|
||
|
|
color: #27ae60;
|
||
|
|
border: 1px solid #2ecc71;
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge-danger {
|
||
|
|
background-color: rgba(231, 76, 60, 0.15);
|
||
|
|
color: #c0392b;
|
||
|
|
border: 1px solid #e74c3c;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Notification / Toast */
|
||
|
|
.notification {
|
||
|
|
position: fixed;
|
||
|
|
top: 20px;
|
||
|
|
right: 20px;
|
||
|
|
padding: 15px 25px;
|
||
|
|
border-radius: 10px;
|
||
|
|
color: white;
|
||
|
|
font-weight: 600;
|
||
|
|
box-shadow: var(--shadow-heavy);
|
||
|
|
display: none;
|
||
|
|
z-index: 1000;
|
||
|
|
animation: slideIn 0.3s ease-out;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes slideIn {
|
||
|
|
from {
|
||
|
|
transform: translateX(100%);
|
||
|
|
opacity: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
to {
|
||
|
|
transform: translateX(0);
|
||
|
|
opacity: 1;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.inline-form {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
}
|
||
|
|
|
||
|
|
.admin-header {
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 15px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
}
|