Files
SkyArtShop/website/admin/css/admin-style.css

589 lines
9.2 KiB
CSS
Raw Normal View History

2025-12-14 01:54:40 -06:00
:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--sidebar-width: 250px;
--transition-speed: 0.3s;
--primary-color: #667eea;
--danger-color: #dc3545;
--success-color: #28a745;
--warning-color: #ffc107;
--info-color: #17a2b8;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
background-color: #f8f9fa;
overflow-x: hidden;
}
/* Sidebar Styles */
.sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: var(--sidebar-width);
background: var(--primary-gradient);
padding: 20px;
color: white;
overflow-y: auto;
transition: all var(--transition-speed) ease;
z-index: 1000;
}
.sidebar-brand {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 30px;
text-align: center;
padding: 10px;
}
.sidebar-menu {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar-menu li {
margin-bottom: 5px;
}
.sidebar-menu a {
color: rgba(255, 255, 255, 0.9);
text-decoration: none;
display: flex;
align-items: center;
padding: 12px 15px;
border-radius: 8px;
transition: all 0.25s ease;
font-size: 0.95rem;
}
.sidebar-menu a:hover {
background: rgba(255, 255, 255, 0.15);
color: white;
transform: translateX(5px);
}
.sidebar-menu a.active {
background: rgba(255, 255, 255, 0.2);
color: white;
font-weight: 600;
}
.sidebar-menu i {
margin-right: 12px;
font-size: 1.2rem;
width: 24px;
text-align: center;
}
/* Main Content */
.main-content {
margin-left: var(--sidebar-width);
padding: 30px;
min-height: 100vh;
transition: margin-left var(--transition-speed) ease;
}
/* Top Bar */
.top-bar {
background: white;
padding: 25px 30px;
border-radius: 12px;
margin-bottom: 30px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
justify-content: space-between;
align-items: center;
animation: slideDown 0.4s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.top-bar h3 {
margin: 0;
font-size: 1.75rem;
color: #2c3e50;
}
.top-bar p {
margin: 5px 0 0 0;
color: #6c757d;
}
/* Actions Bar */
.actions-bar {
background: white;
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
flex-wrap: wrap;
}
.search-box {
position: relative;
flex: 1;
max-width: 400px;
}
.search-box i {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: #6c757d;
}
.search-box input {
width: 100%;
padding: 10px 15px 10px 45px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 0.95rem;
transition: all 0.3s ease;
}
.search-box input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
/* Cards */
.card {
background: white;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: none;
overflow: hidden;
}
/* Tables */
.table-responsive {
overflow-x: auto;
}
.table {
margin: 0;
}
.table thead {
background: #f8f9fa;
}
.table thead th {
font-weight: 600;
color: #2c3e50;
border-bottom: 2px solid #e9ecef;
padding: 15px;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.table tbody td {
padding: 15px;
vertical-align: middle;
color: #495057;
}
.table tbody tr {
transition: background-color 0.2s ease;
}
.table tbody tr:hover {
background-color: #f8f9fa;
}
/* Buttons */
.btn {
padding: 10px 20px;
border-radius: 8px;
font-weight: 600;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-primary {
background: var(--primary-gradient);
border: none;
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
background: #6c757d;
border: none;
color: white;
}
.btn-success {
background: var(--success-color);
border: none;
color: white;
}
.btn-danger {
background: var(--danger-color);
border: none;
color: white;
}
.btn-warning {
background: var(--warning-color);
border: none;
color: #212529;
}
.btn-info {
background: var(--info-color);
border: none;
color: white;
}
.btn-logout {
background: #dc3545;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-logout:hover {
background: #c82333;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}
.btn-sm {
padding: 6px 12px;
font-size: 0.875rem;
}
/* Badges */
.badge {
padding: 6px 12px;
border-radius: 6px;
font-weight: 600;
font-size: 0.75rem;
}
.badge-success {
background: #d4edda;
color: #155724;
}
.badge-danger {
background: #f8d7da;
color: #721c24;
}
.badge-warning {
background: #fff3cd;
color: #856404;
}
.badge-info {
background: #d1ecf1;
color: #0c5460;
}
/* Loading Animation */
.loading-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(102, 126, 234, 0.3);
border-radius: 50%;
border-top-color: #667eea;
animation: spin 0.8s linear infinite;
margin-right: 10px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Form Controls */
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
.form-check-input:checked {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
/* Modal Enhancements */
.modal-content {
border-radius: 12px;
border: none;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
background: var(--primary-gradient);
color: white;
border-radius: 12px 12px 0 0;
padding: 20px 25px;
}
.modal-header .btn-close {
filter: brightness(0) invert(1);
}
.modal-body {
padding: 25px;
}
.modal-footer {
padding: 20px 25px;
border-top: 1px solid #e9ecef;
}
/* Responsive Design */
2025-12-19 20:44:46 -06:00
/* Mobile First - Base Styles */
2025-12-14 01:54:40 -06:00
@media (max-width: 768px) {
2025-12-19 20:44:46 -06:00
:root {
--sidebar-width: 0px;
}
2025-12-14 01:54:40 -06:00
.sidebar {
transform: translateX(-100%);
2025-12-19 20:44:46 -06:00
width: 280px;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
2025-12-14 01:54:40 -06:00
}
.sidebar.active {
transform: translateX(0);
}
2025-12-19 20:44:46 -06:00
/* Backdrop for mobile menu */
.sidebar.active::before {
content: '';
position: fixed;
top: 0;
left: 280px;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: -1;
}
2025-12-14 01:54:40 -06:00
.main-content {
margin-left: 0;
2025-12-19 20:44:46 -06:00
padding: 15px;
}
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
display: block;
position: fixed;
top: 15px;
left: 15px;
z-index: 1001;
background: var(--primary-gradient);
color: white;
border: none;
border-radius: 8px;
width: 44px;
height: 44px;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.mobile-menu-toggle:focus-visible {
outline: 2px solid white;
outline-offset: 2px;
2025-12-14 01:54:40 -06:00
}
.top-bar {
flex-direction: column;
gap: 15px;
2025-12-19 20:44:46 -06:00
margin-top: 50px;
padding: 15px;
}
.top-bar h1 {
font-size: 1.5rem;
2025-12-14 01:54:40 -06:00
}
.actions-bar {
flex-direction: column;
align-items: stretch;
2025-12-19 20:44:46 -06:00
gap: 10px;
2025-12-14 01:54:40 -06:00
}
.search-box {
max-width: 100%;
}
2025-12-19 20:44:46 -06:00
/* Table Responsive */
.table-responsive {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
table {
min-width: 600px;
}
/* Cards Stack on Mobile */
.stats-grid {
grid-template-columns: 1fr !important;
}
/* Modal Adjustments */
.modal-dialog {
margin: 10px;
}
.modal-content {
max-height: calc(100vh - 20px);
overflow-y: auto;
}
/* Form Elements Full Width */
.form-control,
.btn {
font-size: 16px; /* Prevent iOS zoom */
}
/* Hide certain columns on mobile */
.hide-mobile {
display: none !important;
}
}
/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
:root {
--sidebar-width: 220px;
}
.sidebar {
width: 220px;
padding: 15px;
}
.sidebar-brand {
font-size: 1.3rem;
}
.sidebar-menu a {
padding: 10px 12px;
font-size: 0.9rem;
}
.main-content {
padding: 20px;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.mobile-menu-toggle {
display: none;
}
}
/* Desktop Styles */
@media (min-width: 1025px) {
.mobile-menu-toggle {
display: none;
}
.sidebar {
width: var(--sidebar-width);
}
/* Larger cards grid */
.stats-grid {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
}
/* Large Desktop */
@media (min-width: 1400px) {
:root {
--sidebar-width: 280px;
}
.container-large {
max-width: 1320px;
}
2025-12-14 01:54:40 -06:00
}
/* Utility Classes */
.text-center {
text-align: center;
}
.mt-3 {
margin-top: 1rem;
}
.mb-3 {
margin-bottom: 1rem;
}
.p-3 {
padding: 1rem;
}
/* Section Headings */
.section-heading {
font-size: 1.5rem;
font-weight: 700;
color: #2c3e50;
margin: 40px 0 20px;
display: flex;
align-items: center;
gap: 10px;
}
.section-heading::after {
content: "";
flex: 1;
height: 2px;
background: linear-gradient(to right, #667eea, transparent);
}