/* Verdmarket Custom Styles */

/* ─── Base ─────────────────────────────────────────────────── */
body {
    font-family: 'Inter', 'DM Sans', sans-serif;
    color: #2C2C2C;
    background-color: #FAF8F5;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: #4A7C59;
    color: white;
    border-color: #4A7C59;
}
.btn-primary:hover {
    background-color: #6B9F7B;
    border-color: #6B9F7B;
}

.btn-secondary {
    background-color: transparent;
    color: #4A7C59;
    border-color: #4A7C59;
}
.btn-secondary:hover {
    background-color: #4A7C59;
    color: white;
}

.btn-danger {
    background-color: #C75B5B;
    color: white;
    border-color: #C75B5B;
}
.btn-danger:hover {
    background-color: #a94a4a;
    border-color: #a94a4a;
}

.btn-ghost {
    background: none;
    color: #4A7C59;
    border: none;
    padding: 0.5rem 1rem;
}
.btn-ghost:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

/* ─── Cards ────────────────────────────────────────────────── */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-2px);
}

/* ─── Forms ────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E0DDD8;
    border-radius: 12px;
    font-size: 0.9375rem;
    background: white;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: #4A7C59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-input.error {
    border-color: #C75B5B;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B6B6B;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-error {
    color: #C75B5B;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* ─── Badge ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary { background: #E8F0EB; color: #2D5A3F; }
.badge-secondary { background: #E8D5D5; color: #8B6B6B; }
.badge-warning { background: #FDF3E0; color: #966A1D; }
.badge-danger { background: #FDEAEA; color: #C75B5B; }
.badge-success { background: #E8F0EB; color: #4A7C59; }
.badge-gold { background: #FBF5E8; color: #9A7D3A; }

/* ─── Status badges ────────────────────────────────────────── */
.status-pending { background: #FDF3E0; color: #966A1D; }
.status-confirmed { background: #E8F0EB; color: #2D5A3F; }
.status-processing { background: #E0EDFF; color: #2B5BA8; }
.status-shipped { background: #E8F0EB; color: #4A7C59; }
.status-delivered { background: #D4EDDA; color: #155724; }
.status-completed { background: #D4EDDA; color: #155724; }
.status-cancelled { background: #FDEAEA; color: #C75B5B; }

/* ─── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #FAF8F5;
    border-right: 1px solid #E8E5E0;
    padding: 1.5rem 0;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #6B6B6B;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: #2C2C2C;
    background: rgba(74, 124, 89, 0.05);
}

.sidebar-link.active {
    color: #4A7C59;
    background: rgba(74, 124, 89, 0.08);
    border-left-color: #4A7C59;
    font-weight: 500;
}

.sidebar-section {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9B9B9B;
    padding: 1.5rem 1.5rem 0.5rem;
}

/* ─── Dashboard content ────────────────────────────────────── */
.dashboard-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

/* ─── Stars ────────────────────────────────────────────────── */
.stars {
    color: #C9A962;
}

.star-empty {
    color: #E0DDD8;
}

/* ─── Toast / Flash messages ───────────────────────────────── */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 0.9375rem;
    min-width: 300px;
}

.toast-success { background: #4A7C59; color: white; }
.toast-error { background: #C75B5B; color: white; }
.toast-warning { background: #E8B94A; color: #2C2C2C; }
.toast-info { background: #2D5A3F; color: white; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── Empty state ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9B9B9B;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #C4A0A0;
}

/* ─── Table ────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    background: white;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B6B6B;
    background: #FAF8F5;
    border-bottom: 1px solid #E8E5E0;
}

.data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border-bottom: 1px solid #F0EDE8;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #FDFCFB;
}

/* ─── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pagination a {
    color: #6B6B6B;
}

.pagination a:hover {
    background: #E8F0EB;
    color: #4A7C59;
}

.pagination .active {
    background: #4A7C59;
    color: white;
}

/* ─── Skeleton loading ─────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #F0EDE8 25%, #E8E5E0 50%, #F0EDE8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 50;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .dashboard-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
    .card { border-radius: 12px; }
}
