Spaces:
Build error
Build error
:root { | |
--primary-color: #4e73df; | |
--secondary-color: #1cc88a; | |
--danger-color: #e74a3b; | |
--warning-color: #f6c23e; | |
--dark-color: #5a5c69; | |
--light-color: #f8f9fc; | |
--sidebar-width: 250px; | |
} | |
body { | |
font-family: 'Nunito', sans-serif; | |
background-color: #f8f9fc; | |
margin: 0; | |
padding: 0; | |
color: #333; | |
} | |
.dashboard { | |
display: flex; | |
min-height: 100vh; | |
} | |
.sidebar { | |
width: var(--sidebar-width); | |
background: linear-gradient(180deg, var(--primary-color) 10%, #224abe 100%); | |
color: white; | |
padding: 20px 0; | |
position: fixed; | |
height: 100%; | |
z-index: 1; | |
} | |
.logo { | |
padding: 0 20px 20px; | |
display: flex; | |
align-items: center; | |
font-size: 1.2rem; | |
font-weight: 800; | |
} | |
.logo i { | |
margin-right: 10px; | |
font-size: 1.5rem; | |
} | |
.menu { | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
} | |
.menu li { | |
padding: 12px 20px; | |
transition: all 0.3s; | |
} | |
.menu li:hover { | |
background-color: rgba(255, 255, 255, 0.1); | |
} | |
.menu li.active { | |
background-color: rgba(255, 255, 255, 0.2); | |
} | |
.menu li a { | |
color: white; | |
text-decoration: none; | |
display: flex; | |
align-items: center; | |
} | |
.menu li a i { | |
margin-right: 10px; | |
width: 20px; | |
text-align: center; | |
} | |
.main-content { | |
margin-left: var(--sidebar-width); | |
flex: 1; | |
padding: 20px 30px; | |
} | |
header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 30px; | |
} | |
header h1 { | |
font-size: 1.8rem; | |
font-weight: 700; | |
color: var(--dark-color); | |
margin: 0; | |
} | |
.user-actions { | |
display: flex; | |
align-items: center; | |
gap: 15px; | |
} | |
.user-profile { | |
display: flex; | |
align-items: center; | |
gap: 10px; | |
background-color: white; | |
padding: 8px 15px; | |
border-radius: 50px; | |
box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15); | |
} | |
.user-profile img { | |
border-radius: 50%; | |
} | |
.stats-cards { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
gap: 20px; | |
margin-bottom: 30px; | |
} | |
.stat-card { | |
border-radius: 10px; | |
border-left: 5px solid var(--primary-color); | |
box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1); | |
transition: transform 0.3s; | |
} | |
.stat-card:hover { | |
transform: translateY(-5px); | |
} | |
.stat-card:nth-child(2) { | |
border-left-color: var(--secondary-color); | |
} | |
.stat-card:nth-child(3) { | |
border-left-color: var(--warning-color); | |
} | |
.stat-value { | |
font-size: 1.8rem; | |
font-weight: 700; | |
margin: 10px 0; | |
} | |
.stat-change { | |
font-size: 0.9rem; | |
color: var(--dark-color); | |
margin: 0; | |
} | |
.stat-change i { | |
margin-right: 5px; | |
} | |
.data-table-container { | |
background-color: white; | |
border-radius: 10px; | |
padding: 20px; | |
box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1); | |
} | |
.table-header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 20px; | |
} | |
.table-header h3 { | |
font-weight: 700; | |
color: var(--dark-color); | |
margin: 0; | |
} | |
.table-actions { | |
display: flex; | |
align-items: center; | |
gap: 15px; | |
} | |
.search-box { | |
position: relative; | |
} | |
.search-box input { | |
padding: 8px 15px 8px 35px; | |
border-radius: 50px; | |
border: 1px solid #ddd; | |
outline: none; | |
transition: all 0.3s; | |
} | |
.search-box input:focus { | |
border-color: var(--primary-color); | |
box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25); | |
} | |
.search-box i { | |
position: absolute; | |
left: 12px; | |
top: 50%; | |
transform: translateY(-50%); | |
color: #aaa; | |
} | |
.refresh-btn { | |
background-color: var(--light-color); | |
color: var(--dark-color); | |
border: none; | |
padding: 8px 15px; | |
border-radius: 50px; | |
display: flex; | |
align-items: center; | |
gap: 5px; | |
} | |
.refresh-btn:hover { | |
background-color: #e2e6ea; | |
} | |
.table th { | |
font-weight: 700; | |
color: var(--dark-color); | |
border-top: none; | |
} | |
.table td { | |
vertical-align: middle; | |
} | |
.view-btn, .delete-btn { | |
width: 30px; | |
height: 30px; | |
display: inline-flex; | |
align-items: center; | |
justify-content: center; | |
padding: 0; | |
} | |
.ticket-details { | |
display: grid; | |
grid-template-columns: 1fr; | |
gap: 15px; | |
} | |
.detail-row { | |
display: flex; | |
justify-content: space-between; | |
padding: 8px 0; | |
border-bottom: 1px solid #eee; | |
} | |
.detail-label { | |
font-weight: 600; | |
color: var(--dark-color); | |
} | |
.detail-value { | |
color: #666; | |
} | |
@media (max-width: 768px) { | |
.sidebar { | |
width: 70px; | |
overflow: hidden; | |
} | |
.sidebar .logo span, .menu li a span { | |
display: none; | |
} | |
.menu li a i { | |
margin-right: 0; | |
font-size: 1.2rem; | |
} | |
.main-content { | |
margin-left: 70px; | |
} | |
.stats-cards { | |
grid-template-columns: 1fr; | |
} | |
.table-header { | |
flex-direction: column; | |
align-items: flex-start; | |
gap: 15px; | |
} | |
} |