/* 
 * Merchant AI Feed - Dashboard Admin CSS
 */

.merchant-ai-wrap {
    max-width: 900px;
    /* Keep it constrained for better readability like the screenshot */
    margin: 20px 20px 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
}

.merchant-ai-wrap * {
    box-sizing: border-box;
}

/* --- Header Section --- */
.merchant-ai-header {
    background: linear-gradient(135deg, #000000 0%, #30270b 25%, #d4af37 100%);
    border-radius: 8px;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.merchant-ai-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.merchant-ai-header-left h1 {
    color: #d4af37;
    margin: 0;
    font-size: 34px;
    font-weight: 500;
}

.merchant-ai-header-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.merchant-ai-header-right .version {
    font-size: 16px;
    color: #f1f1f1;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.merchant-ai-header-right h2 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 400;
}


/* --- General Card Styles --- */
.merchant-ai-card {
    background: #fff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.gold-text {
    color: #c99321;
}

/* --- Grid Layouts --- */
.merchant-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Left side main card */
.products-indexed-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-indexed-card h3 {
    margin-top: 0;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 35px;
    color: #111;
}

.products-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-left: 10px;
}

.stats-numbers {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 16px;
    color: #111;
    font-weight: 400;
}

.stat-value {
    font-size: 16px;
    color: #777;
    font-weight: 500;
}

/* Right side grid toggles */
.merchant-ai-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.toggle-card,
.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 15px;
}

.toggle-label,
.status-label {
    font-size: 15px;
    font-weight: 400;
    color: #111;
}

/* --- Toggles Data Style --- */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    -webkit-transition: .3s;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .3s;
    transition: .3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #d4af37;
}

input:focus+.slider {
    box-shadow: 0 0 1px #d4af37;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Status Indicators --- */
.status-indicator {
    width: 18px;
    height: 18px;
    background-color: #1da849;
    /* Green from the mockup */
    border-radius: 50%;
}

/* --- Single row Sync Card --- */
.feed-url-card h4 {
    font-size: 24px;
}

.copy-btn,
.view-btn {
    background-color: #d4af37;
    color: #fff;
    font-size: 16px;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 10px 10px 0;
}

.feed-url-card input {
    width: 100%;
    padding: 5px 15px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    font-size: 16px;
}

.feed-url-card p {
    font-size: 16px;
}

.sync-time-card,
.feed-url-card {
    padding: 25px 35px;
    margin-bottom: 20px;
}

.sync-time-card {
    display: flex;
    align-items: center;
}

.sync-time-card h3 {
    margin: 0;
    font-size: 24px;
    color: #111;
}

.sync-left {
    flex: 1;
}

.sync-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sync-right {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sync-label {
    font-size: 16px;
    color: #111;
    font-weight: 400;
}

.sync-value {
    font-size: 16px;
    color: #777;
    font-weight: 500;
}

/* --- Footer Info Card --- */
.info-card {
    background-color: #fffdf8;
    /* Very subtle warm gold tint */
    border-color: #333;
    /* Darker border for the bottom block as in mockup */
}

.gold-text-light {
    color: #c4992b;
}

.info-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #111;
}

.info-card p {
    margin: 0;
    font-size: 15px;
    color: #222;
    line-height: 1.5;
}