/* MMO Marketplace Custom Styles */

:root {
    /* Theme Tím Nhạt - Tím Trendy */
    --brand-main: #8b5cf6;       /* Violet 500 */
    --brand-hover: #7c3aed;      /* Violet 600 */
    --brand-light: #ddd6fe;      /* Violet 200 */
    --brand-dark: #6d28d9;       /* Violet 700 */
    
    --primary-color: var(--brand-main);
    --secondary-color: #a855f7;  /* Purple 500 */
    --danger-color: #ef4444;     /* Red 500 */
    --warning-color: #f59e0b;    /* Amber 500 */
    --dark-color: #1f2937;       /* Gray 800 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc; /* Màu nền sáng nhẹ */
}

/* OVERRIDE BOOTSTRAP COLORS THÀNH MÀU TÍM */
.text-success, .text-primary {
    color: var(--brand-main) !important;
}

.bg-success, .bg-primary {
    background-color: var(--brand-main) !important;
}

.btn-success, .btn-primary {
    background-color: var(--brand-main);
    border-color: var(--brand-main);
    color: white;
}

.btn-success:hover, .btn-primary:hover, .btn-success:focus, .btn-primary:focus {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-outline-success, .btn-outline-primary {
    color: var(--brand-main);
    border-color: var(--brand-main);
}

.btn-outline-success:hover, .btn-outline-primary:hover {
    background-color: var(--brand-main);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.badge.bg-success, .badge.bg-primary {
    background-color: var(--brand-main) !important;
    color: white;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Product Card */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,.15);
}

.product-card img {
    border-radius: 10px 10px 0 0;
}

/* Category Card */
.category-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Table */
.table {
    background: white;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Form */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

.seller-form-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.seller-form-card {
    background: #fff;
    border: 1px solid #e9ecf4;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.seller-form-section {
    border: 1px solid #edf0f6;
    border-radius: 18px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.seller-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.seller-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    color: var(--brand-main);
}

.category-profile-card {
    border-radius: 20px;
    padding: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 55%, #a855f7 100%);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.25);
}

.category-profile-card .profile-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.category-profile-card .profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
}

.category-profile-points {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.category-profile-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
}

.dynamic-note-box {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: #f8f5ff;
    border: 1px solid #e9ddff;
}

.stock-mode-card {
    border: 1px dashed #d8def0;
    border-radius: 18px;
    padding: 1rem;
    background: #f8fbff;
}

.stock-item-preview {
    border: 1px solid #eceff7;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #fff;
}

.stock-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 600;
}
