/* Zemicon Brand Color Overrides for Jazzmin Admin */

:root {
    --zemicon-teal: #008881;
    --zemicon-green: #89B34D;
    --zemicon-dark-teal: #006b65;
    --zemicon-text: #495565;
}

/* Sidebar logo sizing */
.brand-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.6rem 0.5rem !important;
}
.brand-link .brand-image {
    max-height: 36px !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}
.brand-link .brand-text {
    display: none !important;
}

/* Navbar gradient matching Zemicon frontend */
.main-header.navbar {
    background: linear-gradient(135deg, #89B34D 0%, #008881 100%) !important;
    border: none !important;
}

/* Sidebar active/hover states */
.nav-sidebar .nav-link.active {
    background-color: #008881 !important;
    color: #fff !important;
}
.nav-sidebar .nav-link:hover {
    background-color: rgba(0, 136, 129, 0.15) !important;
}
[class*="sidebar-dark"] .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #008881 !important;
}

/* Login page branding */
.login-page,
.register-page {
    background: linear-gradient(135deg, #89B34D 0%, #008881 100%) !important;
}
.login-logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(0);
}
.login-box .btn-primary,
.login-box .btn-success,
.login-box .btn-outline-primary {
    background-color: #008881 !important;
    border-color: #008881 !important;
    color: #fff !important;
}
.login-box .btn-primary:hover,
.login-box .btn-success:hover {
    background-color: #006b65 !important;
    border-color: #006b65 !important;
}
.login-logo a {
    color: #fff !important;
    font-weight: 700;
}

/* Primary buttons */
.btn-primary {
    background-color: #008881 !important;
    border-color: #008881 !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #006b65 !important;
    border-color: #006b65 !important;
}

/* Links */
a:not(.nav-link):not(.btn):not(.brand-link) {
    color: #008881;
}
a:not(.nav-link):not(.btn):not(.brand-link):hover {
    color: #006b65;
}

/* Badge and accent colors */
.badge-success,
.bg-success {
    background-color: #008881 !important;
}
.text-success {
    color: #008881 !important;
}

/* Breadcrumb active */
.breadcrumb-item.active {
    color: #008881;
}

/* Selection/checkbox accent */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #008881;
    border-color: #008881;
}

/* Progress bars */
.progress-bar {
    background-color: #008881;
}

/* Card header accent */
.card-primary:not(.card-outline) > .card-header {
    background-color: #008881 !important;
}

/* Date hierarchy links */
.xfull a {
    color: #008881 !important;
}

/* Hide Jazzmin version badge in footer */
.main-footer a[href*="jazzmin"],
.main-footer .float-right,
.main-footer .pull-right {
    display: none !important;
}

/* Hide breadcrumbs — redundant with sidebar navigation */
.content-header .breadcrumb,
.breadcrumb-item,
ol.breadcrumb {
    display: none !important;
}

/* ── Shopify-Style Dashboard ── */

.ze-dashboard {
    padding: 0.5rem 0;
}

/* KPI Cards */
.ze-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-left: 4px solid #e0e0e0;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ze-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.ze-card--orders  { border-left-color: #008881; }
.ze-card--revenue { border-left-color: #89B34D; }
.ze-card--customers { border-left-color: #f59e0b; }
.ze-card--vendors { border-left-color: #6366f1; }

.ze-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-right: 1rem;
    flex-shrink: 0;
}
.ze-card--orders .ze-card__icon  { background: #008881; }
.ze-card--revenue .ze-card__icon { background: #89B34D; }
.ze-card--customers .ze-card__icon { background: #f59e0b; }
.ze-card--vendors .ze-card__icon { background: #6366f1; }

.ze-card__body {
    display: flex;
    flex-direction: column;
}
.ze-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.ze-card__label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Section Cards */
.ze-section {
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.ze-section .card-header {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 1rem 1.25rem !important;
}
.ze-section .card-header .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}
.ze-section .card-body {
    padding: 1.25rem;
}

/* 30-Day Stats */
.ze-stat {
    padding: 1rem 0;
}
.ze-stat__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #008881;
    line-height: 1.2;
}
.ze-stat__label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Status Dots */
.ze-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}
.ze-dot--placed     { background: #f59e0b; }
.ze-dot--processing { background: #3b82f6; }
.ze-dot--shipped    { background: #8b5cf6; }
.ze-dot--delivered  { background: #10b981; }

/* Order Status Table */
.ze-section .table td {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f5f5f5;
    vertical-align: middle;
}
.ze-section .table tr:first-child td {
    border-top: none;
}

/* Status Badges */
.ze-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.ze-badge--placed     { background: #fef3c7; color: #92400e; }
.ze-badge--processing { background: #dbeafe; color: #1e40af; }
.ze-badge--shipped    { background: #ede9fe; color: #5b21b6; }
.ze-badge--delivered  { background: #d1fae5; color: #065f46; }

/* Recent Orders Table */
.ze-section .table-hover tbody tr:hover {
    background-color: #f8fffe;
}
.ze-section .table thead th {
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ze-card {
        padding: 1rem;
    }
    .ze-card__value {
        font-size: 1.25rem;
    }
}

/* ── Shopify-Style Order Detail Page ── */

/* Order Header */
.ze-order-header {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.ze-order-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.ze-order-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.ze-order-date {
    font-size: 0.85rem;
    color: #6b7280;
}
.ze-order-total-header {
    text-align: right;
}
.ze-order-total-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ze-order-total-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #008881;
}

/* Items Table */
.ze-items-table thead th {
    border-bottom: 2px solid #f0f0f0 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    padding: 0.75rem 1.25rem !important;
    background: #fafafa;
}
.ze-items-table tbody td {
    padding: 0.75rem 1.25rem !important;
    vertical-align: middle;
    border-top: 1px solid #f5f5f5 !important;
}
.ze-item-title {
    font-size: 0.85rem;
    color: #6b7280;
    max-width: 250px;
}

/* Pricing Summary */
.ze-pricing-summary {
    border-top: 2px solid #f0f0f0;
    padding: 1rem 1.25rem;
    max-width: 350px;
    margin-left: auto;
}
.ze-pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #374151;
}
.ze-pricing-row--discount {
    color: #10b981;
}
.ze-pricing-row--total {
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* Vendor Split */
.ze-vendor-split {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}
.ze-vendor-split:last-child {
    border-bottom: none;
}
.ze-vendor-split__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Customer Info */
.ze-customer-info p {
    font-size: 0.9rem;
}

/* Edit section divider */
.ze-divider {
    margin: 2rem 0 1rem;
    border-color: #e5e7eb;
}
.ze-edit-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

/* Order list status badges */
.results table td .ze-badge {
    display: inline-block;
}
