136 lines
2.5 KiB
CSS
136 lines
2.5 KiB
CSS
:root {
|
|
--primary-color: #2c3e50;
|
|
--secondary-color: #3498db;
|
|
--background-color: #ecf0f1;
|
|
--surface-color: #ffffff;
|
|
--font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--background-color);
|
|
font-family: var(--font-family);
|
|
margin: 0;
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 250px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.sidebar h3 {
|
|
margin-top: 0;
|
|
text-align: center;
|
|
}
|
|
.sidebar a {
|
|
color: white;
|
|
text-decoration: none;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.25rem;
|
|
margin-bottom: 0.5rem;
|
|
transition: background-color 0.2s ease-in-out;
|
|
}
|
|
.sidebar a:hover, .sidebar a.active {
|
|
background-color: var(--secondary-color);
|
|
}
|
|
.sidebar .logout {
|
|
margin-top: auto;
|
|
}
|
|
|
|
.main-content {
|
|
flex-grow: 1;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.dashboard-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.stat-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.card {
|
|
background-color: var(--surface-color);
|
|
border-radius: 0.5rem;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
}
|
|
.card h4 {
|
|
margin-top: 0;
|
|
color: #7f8c8d;
|
|
}
|
|
.card .stat {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* Login Page */
|
|
.login-container {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.login-box {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 2rem;
|
|
background-color: var(--surface-color);
|
|
border-radius: 0.5rem;
|
|
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
|
|
}
|
|
.login-box h1 {
|
|
text-align: center;
|
|
color: var(--primary-color);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
color: #7f8c8d;
|
|
}
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
border: 1px solid #bdc3c7;
|
|
border-radius: 0.25rem;
|
|
box-sizing: border-box;
|
|
}
|
|
.btn {
|
|
width: 100%;
|
|
padding: 0.85rem;
|
|
border: none;
|
|
border-radius: 0.25rem;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
.btn-primary {
|
|
background-color: var(--secondary-color);
|
|
color: white;
|
|
}
|
|
.alert {
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
border-radius: 0.25rem;
|
|
}
|
|
.alert-danger {
|
|
background-color: #f2dede;
|
|
color: #a94442;
|
|
border: 1px solid #ebccd1;
|
|
}
|