344 lines
5.0 KiB
CSS
344 lines
5.0 KiB
CSS
.admin-container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
|
|
.admin-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 2px solid #007bff;
|
|
}
|
|
|
|
.admin-header h2 {
|
|
margin: 0;
|
|
color: #333;
|
|
font-size: 1.8em;
|
|
}
|
|
|
|
|
|
.admin-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2.5em;
|
|
font-weight: 700;
|
|
color: #007bff;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #666;
|
|
font-size: 0.9em;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 2em;
|
|
color: #007bff;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
|
|
.admin-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
margin-bottom: 30px;
|
|
padding: 20px;
|
|
background: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.btn-admin {
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.2s;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.btn-success {
|
|
background: #28a745;
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background: #218838;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #0056b3;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #c82333;
|
|
color: white;
|
|
}
|
|
|
|
.btn-warning {
|
|
background: #ffc107;
|
|
color: #333;
|
|
}
|
|
|
|
.btn-warning:hover {
|
|
background: #e0a800;
|
|
color: #333;
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
.admin-table-container {
|
|
background: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.admin-table thead {
|
|
background: #007bff;
|
|
}
|
|
|
|
.admin-table th {
|
|
padding: 18px 15px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: white;
|
|
font-size: 0.9em;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.admin-table tbody tr {
|
|
border-bottom: 1px solid #e9ecef;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.admin-table tbody tr:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.admin-table td {
|
|
padding: 15px;
|
|
vertical-align: middle;
|
|
color: #495057;
|
|
}
|
|
|
|
|
|
.admin-table td:first-child {
|
|
width: 80px;
|
|
}
|
|
|
|
.admin-table img {
|
|
width: 60px;
|
|
height: 60px;
|
|
object-fit: cover;
|
|
border-radius: 6px;
|
|
background-color: #f8f9fa;
|
|
padding: 5px;
|
|
}
|
|
|
|
|
|
.stock-high {
|
|
color: #28a745;
|
|
font-weight: 600;
|
|
background: rgba(40, 167, 69, 0.1);
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.stock-low {
|
|
color: #ffc107;
|
|
font-weight: 600;
|
|
background: rgba(255, 193, 7, 0.1);
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.stock-out {
|
|
color: #dc3545;
|
|
font-weight: 600;
|
|
background: rgba(220, 53, 69, 0.1);
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
|
|
.admin-tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid #dee2e6;
|
|
margin-bottom: 30px;
|
|
background: white;
|
|
border-radius: 10px 10px 0 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tab-btn {
|
|
padding: 15px 30px;
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 3px solid transparent;
|
|
font-weight: 500;
|
|
color: #666;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: #007bff;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: #007bff;
|
|
border-bottom-color: #007bff;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 30px;
|
|
padding: 20px;
|
|
background: white;
|
|
border-radius: 0 0 10px 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.page-link {
|
|
padding: 8px 15px;
|
|
background: white;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
color: #007bff;
|
|
transition: all 0.2s;
|
|
font-size: 0.9em;
|
|
min-width: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.page-link:hover {
|
|
background: #f8f9fa;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
.page-link.active {
|
|
background: #007bff;
|
|
color: white;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
.ellipsis {
|
|
padding: 8px 5px;
|
|
color: #6c757d;
|
|
}
|
|
|
|
|
|
.badge-active,
|
|
.badge-inactive {
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
font-size: 0.85em;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge-active {
|
|
background: rgba(40, 167, 69, 0.1);
|
|
color: #28a745;
|
|
}
|
|
|
|
.badge-inactive {
|
|
background: rgba(108, 117, 125, 0.1);
|
|
color: #6c757d;
|
|
}
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
.admin-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
}
|
|
|
|
.admin-stats {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.admin-table {
|
|
display: block;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.admin-tabs {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
text-align: center;
|
|
}
|
|
}
|