:root {
--primary: #4361ee;
--secondary: #3f37c9;
--success: #4cc9f0;
--warning: #f72585;
--info: #4895ef;
--dark: #1e1e2c;
--light: #f8f9fa;
--gray: #6c757d;
--border: #e0e0e0;
--card-bg: #ffffff;
--body-bg: #f5f7fb;
--sidebar-bg: linear-gradient(180deg, var(--primary), var(--secondary));
--text-color: #333333;
--header-bg: #ffffff;
--table-header: #f8f9fa;
}
.dark-mode {
--primary: #5e72e4;
--secondary: #4c54d1;
--success: #36d1dc;
--warning: #ff6b6b;
--info: #4dccff;
--dark: #f8f9fa;
--light: #1a1a2e;
--gray: #a0aec0;
--border: #2d3748;
--card-bg: #1e293b;
--body-bg: #0f172a;
--sidebar-bg: linear-gradient(180deg, #1a1a2e, #16213e);
--text-color: #e2e8f0;
--header-bg: #1e293b;
--table-header: #2d3748;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
body {
background-color: var(--body-bg);
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
}
.container {
display: grid;
grid-template-columns: 250px 1fr;
min-height: 100vh;
}
.container.collapsed {
grid-template-columns: 70px 1fr;
}
/* Mobile Hamburger Button */
.mobile-menu-btn {
display: none;
background: var(--primary);
border: none;
color: white;
width: 50px;
height: 50px;
border-radius: 10px;
cursor: pointer;
align-items: center;
justify-content: center;
position: fixed;
top: 20px;
left: 20px;
z-index: 110;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: left 0.3s ease, transform 0.3s ease;
}
/* Position for close button when menu is open */
.mobile-menu-btn.menu-open {
left: auto;
right: 20px;
}
/* Sidebar Styles */
.sidebar {
background: var(--sidebar-bg);
color: white;
padding: 20px 0;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
position: relative;
z-index: 100;
height: 100vh;
position: sticky;
top: 0;
}
.brand {
padding: 0 20px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
height: 70px;
}
.brand-content {
display: flex;
align-items: center;
gap: 15px;
transition: opacity 0.3s;
}
.diamond-logo {
display: flex;
align-items: center;
justify-content: center;
}
.diamond-shape {
width: 40px;
height: 40px;
background: var(--success);
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
transform: rotate(45deg);
box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}
.diamond-shape i {
transform: rotate(-45deg);
font-size: 1.2rem;
color: white;
}
.brand h1 {
font-size: 1.8rem;
white-space: nowrap;
overflow: hidden;
transition: opacity 0.3s;
}
.toggle-btn {
background: rgba(255, 255, 255, 0.1);
border: none;
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.nav-menu {
margin-top: 30px;
}
.nav-item {
padding: 15px 20px;
display: flex;
align-items: center;
gap: 15px;
transition: all 0.3s ease;
cursor: pointer;
white-space: nowrap;
}
.nav-item:hover, .nav-item.active {
background: rgba(255, 255, 255, 0.1);
border-left: 4px solid var(--success);
}
.nav-item span {
transition: opacity 0.3s;
}
.container.collapsed .nav-item span {
opacity: 0;
width: 0;
overflow: hidden;
position: absolute;
}
.container.collapsed .brand-content {
opacity: 0;
width: 0;
overflow: hidden;
position: absolute;
}
/* Main Content Styles */
.main-content {
padding: 20px;
overflow-y: auto;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
background: var(--header-bg);
padding: 15px 25px;
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.page-title h2 {
font-size: 1.8rem;
color: var(--dark);
font-weight: 700;
}
.page-title p {
color: var(--gray);
font-size: 0.9rem;
}
.header-controls {
display: flex;
align-items: center;
gap: 15px;
}
.theme-toggle {
position: relative;
display: inline-block;
width: 60px;
height: 30px;
}
.theme-toggle input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--primary);
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--success);
}
input:checked + .slider:before {
transform: translateX(30px);
}
.user-profile {
display: flex;
align-items: center;
gap: 15px;
}
.user-info {
text-align: right;
}
.user-info h4 {
font-weight: 600;
color: var(--dark);
}
.user-info p {
font-size: 0.85rem;
color: var(--gray);
}
.avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--primary);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 1.2rem;
box-shadow: 0 0 10px rgba(67, 97, 238, 0.3);
}
/* Metrics Cards */
.metrics {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-bottom: 30px;
}
.card {
background: var(--card-bg);
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease;
position: relative;
overflow: hidden;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 5px;
height: 100%;
background: var(--primary);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.card-title {
font-size: 1.1rem;
font-weight: 600;
color: var(--gray);
}
.card-actions {
display: flex;
gap: 10px;
}
.btn {
padding: 5px 10px;
border-radius: 6px;
font-size: 0.8rem;
cursor: pointer;
border: none;
transition: all 0.3s ease;
}
.btn-edit {
background: rgba(67, 97, 238, 0.1);
color: var(--primary);
}
.btn-edit:hover {
background: var(--primary);
color: white;
}
.btn-explorer {
background: rgba(76, 201, 240, 0.1);
color: var(--success);
}
.btn-explorer:hover {
background: var(--success);
color: white;
}
.card-value {
font-size: 2.2rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 10px;
}
.card-footer {
font-size: 0.9rem;
color: var(--gray);
}
/* Progress Charts */
.progress-chart {
margin-top: 15px;
}
.progress-info {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-size: 0.9rem;
}
.progress-bar-container {
height: 8px;
background: #e0e0e0;
border-radius: 4px;
overflow: hidden;
}
.dark-mode .progress-bar-container {
background: #2d3748;
}
.progress-bar {
height: 100%;
border-radius: 4px;
transition: width 1.5s ease-out;
}
/* Main Grid Layout */
.dashboard-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
}
/* Recent Updates */
.updates {
background: var(--card-bg);
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
}
.section-title {
font-size: 1.3rem;
margin-bottom: 20px;
color: var(--dark);
font-weight: 700;
display: flex;
align-items: center;
gap: 10px;
}
.section-title i {
color: var(--primary);
}
.update-list {
list-style: none;
}
.update-item {
padding: 15px 0;
border-bottom: 1px solid var(--border);
position: relative;
padding-left: 20px;
}
.update-item:last-child {
border-bottom: none;
}
.update-item::before {
content: '';
position: absolute;
left: 0;
top: 20px;
width: 8px;
height: 8px;
background: var(--primary);
border-radius: 50%;
}
.update-item strong {
color: var(--primary);
}
/* Orders Table */
.orders {
background: var(--card-bg);
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 15px;
text-align: left;
border-bottom: 1px solid var(--border);
}
th {
color: var(--gray);
font-weight: 600;
font-size: 0.9rem;
background: var(--table-header);
}
td {
font-size: 0.95rem;
}
.status {
padding: 5px 10px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 500;
display: inline-block;
}
.status-funding {
background: rgba(76, 201, 240, 0.2);
color: var(--success);
}
.status-deferred {
background: rgba(247, 37, 133, 0.2);
color: var(--warning);
}
.payment-due {
color: var(--warning);
font-weight: 600;
}
.payment-refunded {
color: var(--gray);
}
.details-link {
color: var(--primary);
text-decoration: none;
font-weight: 500;
}
/* Sales Analytics */
.analytics {
background: var(--card-bg);
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.analytics-item {
margin-bottom: 25px;
}
.analytics-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.analytics-title {
font-weight: 600;
color: var(--dark);
}
.analytics-percent {
color: var(--success);
font-weight: 600;
}
.analytics-values {
display: flex;
justify-content: space-between;
color: var(--gray);
font-size: 0.9rem;
}
.analytics-total {
padding-top: 20px;
border-top: 1px solid var(--border);
font-weight: 700;
font-size: 1.2rem;
color: var(--dark);
text-align: center;
}
/* Bottom Cards */
.bottom-metrics {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 30px;
}
/* Responsive Design - Mobile Improvements */
@media (max-width: 992px) {
.dashboard-grid {
grid-template-columns: 1fr;
}
.metrics, .bottom-metrics {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.container {
grid-template-columns: 1fr;
display: block;
}
.sidebar {
position: fixed;
left: -300px;
top: 0;
height: 100%;
width: 250px;
z-index: 105;
transition: left 0.3s ease;
overflow-y: auto;
}
.sidebar.active {
left: 0;
}
.mobile-menu-btn {
display: flex;
}
.header {
flex-direction: column;
gap: 20px;
text-align: center;
padding: 90px 20px 20px;
position: relative;
}
.header-controls {
flex-direction: column;
}
.user-profile {
flex-direction: column;
text-align: center;
}
.user-info {
text-align: center;
}
.page-title {
margin-top: 20px;
}
.main-content {
padding: 15px;
}
/* Hide desktop toggle button on mobile */
.toggle-btn {
display: none;
}
/* Show full brand on mobile when menu is open */
.brand-content {
opacity: 1 !important;
width: auto !important;
position: relative !important;
overflow: visible !important;
}
.nav-item span {
opacity: 1 !important;
width: auto !important;
position: relative !important;
overflow: visible !important;
}
}
@media (max-width: 480px) {
.card-value {
font-size: 1.8rem;
}
.card {
padding: 20px;
}
.header {
padding: 90px 15px 15px;
}
.metrics, .bottom-metrics {
gap: 15px;
}
.mobile-menu-btn {
top: 15px;
left: 15px;
}
.mobile-menu-btn.menu-open {
right: 15px;
}
}