/* Nkokwe - Custom Styles */

:root {
    --nk-green: #198754;
    --nk-green-dark: #146c43;
    --nk-green-light: #d1e7dd;
    --nk-orange: #fd7e14;
    --nk-bg: #f8f9fa;
}

body {
    background-color: var(--nk-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--nk-green) 0%, var(--nk-green-dark) 100%);
    color: white;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--nk-green);
    margin-bottom: 10px;
}

/* Product Cards */
.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nk-green);
}

/* Dashboard Stats */
.stat-card {
    border-left: 4px solid var(--nk-green);
}

.stat-card.orange {
    border-left-color: var(--nk-orange);
}

.stat-card.blue {
    border-left-color: #0d6efd;
}

.stat-card.red {
    border-left-color: #dc3545;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

/* Auth Forms */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
}

.auth-container .card {
    padding: 30px;
}

/* Profile */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--nk-green);
}

.profile-picture-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--nk-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--nk-green);
    border: 4px solid var(--nk-green);
}

/* Verification Badge */
.badge-verified {
    color: var(--nk-green);
    font-size: 1rem;
}

/* Star Ratings */
.star-rating .bi-star-fill { color: #ffc107; }
.star-rating .bi-star { color: #dee2e6; }

/* Status Badges */
.status-active { background-color: #198754; }
.status-pending { background-color: #fd7e14; }
.status-escrow { background-color: #0d6efd; }
.status-delivered { background-color: #6f42c1; }
.status-completed { background-color: #198754; }
.status-disputed { background-color: #dc3545; }
.status-cancelled { background-color: #6c757d; }

/* Escrow Flow */
.escrow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.escrow-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.escrow-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    color: white;
}

.escrow-step.active .step-icon {
    background: var(--nk-green);
}

.escrow-step.completed .step-icon {
    background: var(--nk-green);
}

/* Toast notifications */
.toast {
    min-width: 300px;
}

/* Loading spinner */
.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
    margin-right: 5px;
}

/* Image upload preview */
.image-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background-color: #f8f9fa;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.image-preview:hover {
    border-color: var(--nk-green);
}

/* Admin sidebar */
.admin-sidebar {
    min-height: calc(100vh - 76px);
    background: white;
    border-right: 1px solid #dee2e6;
}

.admin-sidebar .nav-link {
    color: #333;
    padding: 10px 20px;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--nk-green-light);
    color: var(--nk-green);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }
}
