:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --accent-color: #f59e0b;
    --danger-color: #dc2626;
    --dark-color: #1e293b;
    --medium-color: #64748b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: white;
    color: var(--dark-color);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

header .logo h1 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header .logo a {
    text-decoration: none;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
}

header nav ul li a {
    color: var(--medium-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

header nav ul li a:hover,
header nav ul li a.active {
    background: var(--primary-color);
    color: white;
}

header .user-menu {
    display: flex;
    gap: 12px;
    align-items: center;
}

header .user-menu a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

header .user-menu a.login-btn {
    background: var(--primary-color);
    color: white;
}

header .user-menu a.login-btn:hover {
    background: var(--primary-dark);
}

header .user-menu a.register-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

header .user-menu a.register-btn:hover {
    background: var(--primary-color);
    color: white;
}

header .user-menu span {
    padding: 8px 0;
    color: var(--medium-color);
    font-weight: 500;
}

header .user-menu .logout-btn {
    background: var(--danger-color);
    color: white;
}

header .user-menu .logout-btn:hover {
    background: #b91c1c;
}

.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 50%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--medium-color);
    max-width: 500px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform 0.3s ease;
}

.category-card:hover .icon {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.category-card p {
    color: var(--medium-color);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.category-card .btn {
    padding: 10px 24px;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card .product-image .rental-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-card .product-image .stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-card .product-content {
    padding: 20px;
}

.product-card .product-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card .product-content .category-tag {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-card .product-content p {
    color: var(--medium-color);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-content .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.product-card .product-content .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card .product-content .price-unit {
    font-size: 14px;
    color: var(--medium-color);
}

.product-card .product-content .original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: auto;
}

.product-card .product-content .add-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card .product-content .add-cart:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card .product-content .add-cart:active {
    transform: translateY(0);
}

.features-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.features-section .section-title h2,
.features-section .section-title p {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 24px;
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    backdrop-filter: blur(10px);
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.6;
}

.about-content,
.contact-content,
.join-content {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-content h3,
.contact-content h3,
.join-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 24px;
}

.about-content p,
.contact-content p,
.join-content p {
    color: var(--medium-color);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    background: var(--light-color);
    border-radius: 14px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.contact-item p {
    color: var(--medium-color);
    font-size: 14px;
    margin: 4px 0;
    line-height: 1.5;
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.join-step {
    text-align: center;
    padding: 24px;
    background: var(--light-color);
    border-radius: 12px;
    position: relative;
}

.join-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
}

.join-step .step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.join-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.join-step p {
    color: var(--medium-color);
    font-size: 14px;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-container {
    width: 100%;
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: var(--dark-color);
}

.form-container .form-group {
    margin-bottom: 20px;
}

.form-container .form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-container .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-container .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-container .checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 15px 0;
    padding: 0;
    width: 100%;
    min-height: 40px;
}

.form-container .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    border: 2px solid #ddd;
    border-radius: 4px;
}

.form-container .checkbox-group label {
    margin: 0;
    font-weight: normal;
    color: var(--medium-color);
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
    text-align: left;
    display: block;
}

.form-container .checkbox-group label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-container .checkbox-group label a:hover {
    text-decoration: underline;
}

.form-container .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: var(--dark-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.modal-content p {
    color: var(--medium-color);
    line-height: 1.8;
    margin: 0 0 10px 0;
}

.alert {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer .footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

footer .footer-section p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

footer .footer-section ul {
    list-style: none;
}

footer .footer-section ul li {
    margin-bottom: 10px;
}

footer .footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

footer .footer-section ul li a:hover {
    color: white;
}

footer .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 14px;
}

.cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.cart-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.7);
}

.cart-float.adding {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-float span {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, var(--danger-color), #b91c1c);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    transition: all 0.3s ease;
    animation: badgePop 0.3s ease;
}

.cart-float span.updating {
    animation: badgeUpdate 0.4s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes badgeUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.flying-dot {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
    transition: none;
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    header nav ul {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    header nav ul li a {
        white-space: nowrap;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .about-content,
    .contact-content,
    .join-content {
        padding: 24px;
    }
    
    .features-grid {
        gap: 16px;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-float {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
    
    .cart-float span {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 12px;
    }
    
    .banner {
        padding: 50px 0;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .product-card .product-image {
        height: 180px;
    }
}

/* CRM管理系统样式 */
.admin-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
}

.admin-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    color: white;
    padding: 16px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.admin-header .logo {
    font-size: 18px;
    font-weight: 700;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header .user-info span {
    font-weight: 500;
}

.admin-header .user-info a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background 0.2s;
}

.admin-header .user-info a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 65px);
}

.admin-sidebar {
    width: 250px;
    background: #1e293b;
    color: white;
    padding: 20px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.admin-sidebar .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
}

.admin-sidebar .sidebar-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar nav ul li {
    margin-bottom: 4px;
}

.admin-sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-sidebar nav ul li a:hover {
    background: #334155;
    color: white;
    border-left-color: #2563eb;
}

.admin-sidebar nav ul li a.active {
    background: #334155;
    color: white;
    border-left-color: #2563eb;
}

.admin-sidebar nav ul li a svg {
    width: 20px;
    height: 20px;
}

.admin-content-wrapper {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.admin-content {
    max-width: 1600px;
    margin: 0 auto;
}

.admin-page-title {
    margin-bottom: 24px;
}

.admin-page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.admin-card .card-icon.blue {
    background: #dbeafe;
}

.admin-card .card-icon.green {
    background: #dcfce7;
}

.admin-card .card-icon.orange {
    background: #fef3c7;
}

.admin-card .card-icon.purple {
    background: #e9d5ff;
}

.admin-card .card-content {
    flex: 1;
}

.admin-card .card-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.admin-card .card-label {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.admin-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table img {
    max-width: 60px;
    height: auto;
    border-radius: 6px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.admin-btn svg {
    width: 16px;
    height: 16px;
}

.admin-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.admin-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.admin-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.admin-btn-secondary:hover {
    background: #e2e8f0;
}

.admin-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.admin-btn-danger:hover {
    background: #fecaca;
}

.admin-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 600px;
}

.admin-form h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form .form-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-form .form-group input,
.admin-form .form-group textarea,
.admin-form .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.admin-form .form-group input:focus,
.admin-form .form-group textarea:focus,
.admin-form .form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-form .form-group input[type="file"] {
    border: none;
    padding: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .admin-btn {
    flex: 1;
    justify-content: center;
}

.admin-alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.admin-pagination a {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.admin-pagination a:hover {
    background: #f1f5f9;
}

.admin-pagination a.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: fixed;
        left: -100%;
        z-index: 200;
        transition: left 0.3s;
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    .admin-content-wrapper {
        padding: 16px;
    }
    
    .admin-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        overflow-x: auto;
    }
    
    .admin-header .logo {
        font-size: 14px;
    }
    
    .admin-header .user-info span {
        display: none;
    }
}
