227 lines
4.4 KiB
CSS
227 lines
4.4 KiB
CSS
body {
|
|
margin: 0;
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 250px;
|
|
height: 100%;
|
|
background-color: #ffffff;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding-top: 20px;
|
|
position: fixed;
|
|
}
|
|
.logo {
|
|
width: 80px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.nav-menu {
|
|
width: 100%;
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.nav-item {
|
|
width: 100%;
|
|
}
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
color: #333;
|
|
padding: 15px 20px;
|
|
font-size: 16px;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
}
|
|
.nav-link:hover,
|
|
.nav-link.active {
|
|
background-color: #e6f7ff;
|
|
color: #007bff;
|
|
}
|
|
.nav-link i {
|
|
margin-right: 10px;
|
|
font-size: 18px;
|
|
}
|
|
.user-section {
|
|
margin-top: auto;
|
|
width: 100%;
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
.user-section img {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
margin-right: 10px;
|
|
}
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.user-info span {
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
|
|
/* Main content area */
|
|
.content {
|
|
margin-left: 250px;
|
|
padding: 20px;
|
|
width: calc(100% - 250px);
|
|
}
|
|
|
|
/* Menu Cards */
|
|
.menu {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
.card {
|
|
background-color: #fff;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
flex: 1 1 calc(30% - 20px);
|
|
max-width: calc(30% - 20px);
|
|
|
|
}
|
|
.card h2 {
|
|
margin: 0 0 10px;
|
|
font-size: 20px;
|
|
}
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
color: #fff;
|
|
background-color: #007bff;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
.btn:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
/* Company Info */
|
|
.company-info {
|
|
text-align: center;
|
|
padding: 20px;
|
|
background-color: Whitesmoke;
|
|
color: blue;
|
|
margin-left: 250px;
|
|
}
|
|
|
|
.company-name {
|
|
font-size: 30px;
|
|
font-weight: bold;
|
|
margin: 0;
|
|
}
|
|
|
|
.app-name {
|
|
font-weight: bold;
|
|
app-name-shadow:0 2px 4px rgba(0, 0, 0, 0.1);
|
|
font-size: 24px;
|
|
margin: 5px 0 0;
|
|
}
|
|
|
|
|
|
|
|
/* Responsive Design */
|
|
@media screen and (max-width: 768px) {
|
|
.sidebar {
|
|
width: 100%;
|
|
height: auto;
|
|
position: static;
|
|
}
|
|
.content {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
}
|
|
.menu {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.card {
|
|
flex: 1 1 100%;
|
|
max-width: 100%;
|
|
min-width: 50%;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
.nav-link {
|
|
font-size: 14px;
|
|
padding: 10px 15px;
|
|
}
|
|
.btn {
|
|
font-size: 12px;
|
|
padding: 8px 15px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
.sidebar {
|
|
width: 100%;
|
|
height: auto;
|
|
position: static;
|
|
}
|
|
|
|
.content {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.menu {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.card {
|
|
flex: 1 1 100%;
|
|
max-width: 100%;
|
|
min-width: 50%;
|
|
}
|
|
|
|
.company-info {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
.nav-link {
|
|
font-size: 14px;
|
|
padding: 10px 15px;
|
|
}
|
|
|
|
.btn {
|
|
font-size: 12px;
|
|
padding: 8px 15px;
|
|
}
|
|
|
|
.user-section {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.user-section img {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.card {
|
|
min-width: 90%;
|
|
}
|
|
}
|