320 lines
6.2 KiB
CSS
320 lines
6.2 KiB
CSS
/* assets/css/custom.css */
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
--color-background-light: #FDFBF5; /* Lighter Beige */
|
|
--color-surface-light: #FFFFFF;
|
|
--color-text-light: #1C1C1C; /* Near Black */
|
|
--color-primary: #B8860B; /* DarkGoldenRod - more subtle than pure gold */
|
|
--color-secondary: #A9A9A9; /* DarkGray */
|
|
--color-accent: #D4AF37; /* Golden */
|
|
--border-color: #EAEAEA;
|
|
--border-radius: 0.5rem;
|
|
--font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family-sans-serif);
|
|
background-color: var(--color-background-light);
|
|
color: var(--color-text-light);
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 260px;
|
|
background-color: var(--color-surface-light);
|
|
border-right: 1px solid var(--border-color);
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar .logo {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--color-primary);
|
|
margin-bottom: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.sidebar .nav-link {
|
|
color: #555;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: 0.5rem;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.sidebar .nav-link .feather {
|
|
margin-right: 1rem;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.sidebar .nav-link:hover,
|
|
.sidebar .nav-link.active {
|
|
background-color: var(--color-accent);
|
|
color: var(--color-surface-light);
|
|
}
|
|
|
|
.main-content {
|
|
flex-grow: 1;
|
|
padding: 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: none;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: var(--color-secondary);
|
|
}
|
|
|
|
.dashboard-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.card {
|
|
background-color: var(--color-surface-light);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--color-secondary);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.card-value {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
color: var(--color-text-light);
|
|
}
|
|
|
|
.card-delta {
|
|
font-size: 0.85rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.text-success {
|
|
color: #28a745;
|
|
}
|
|
|
|
.text-danger {
|
|
color: #dc3545;
|
|
}
|
|
|
|
/* Dark Mode */
|
|
body.dark-mode {
|
|
--color-background-light: #121212;
|
|
--color-surface-light: #1E1E1E;
|
|
--color-text-light: #E0E0E0;
|
|
--border-color: #333;
|
|
--color-secondary: #888;
|
|
}
|
|
|
|
body.dark-mode .sidebar {
|
|
background-color: var(--color-surface-light);
|
|
border-right-color: var(--border-color);
|
|
}
|
|
|
|
body.dark-mode .sidebar .nav-link {
|
|
color: #aaa;
|
|
}
|
|
|
|
body.dark-mode .sidebar .nav-link:hover,
|
|
body.dark-mode .sidebar .nav-link.active {
|
|
background-color: var(--color-accent);
|
|
color: #121212;
|
|
}
|
|
|
|
body.dark-mode .theme-toggle {
|
|
border-color: var(--border-color);
|
|
color: var(--color-secondary);
|
|
}
|
|
|
|
body.dark-mode .card {
|
|
background-color: var(--color-surface-light);
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
/* Page Content Sections */
|
|
.content-section {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.content-section h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Form Styles */
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.form-group-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--color-secondary);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select {
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
background-color: var(--color-background-light);
|
|
color: var(--color-text-light);
|
|
font-family: inherit;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
body.dark-mode .form-group input,
|
|
body.dark-mode .form-group select {
|
|
background-color: #2c2c2c;
|
|
border-color: #444;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: var(--border-radius);
|
|
border: none;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--color-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: var(--color-accent);
|
|
}
|
|
|
|
/* Table Styles */
|
|
.table-responsive {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
}
|
|
|
|
table th, table td {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
table th {
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
color: var(--color-secondary);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Status Badges */
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 0.25em 0.6em;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
border-radius: 20px;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.status-pending {
|
|
background-color: #f0ad4e;
|
|
color: white;
|
|
}
|
|
|
|
.status-in-transit {
|
|
background-color: #5bc0de;
|
|
color: white;
|
|
}
|
|
|
|
.status-delivered {
|
|
background-color: #5cb85c;
|
|
color: white;
|
|
}
|
|
|
|
.status-cancelled {
|
|
background-color: #d9534f;
|
|
color: white;
|
|
}
|
|
|
|
/* --- Charts --- */
|
|
.dashboard-charts {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.chart-container {
|
|
background-color: var(--color-surface-light);
|
|
padding: 1.5rem;
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.chart-title {
|
|
margin-top: 0;
|
|
margin-bottom: 1.5rem;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
body.dark-mode .chart-container {
|
|
background-color: var(--color-surface-light);
|
|
border-color: var(--border-color);
|
|
}
|
|
|