:root {
    --primary-blue: #1e90ff;
    --success-green: #6BFFBC;
    --danger-red: #ff6b6b;
    --warning-orange: #ff9500;
    --light-gray: #f8f9fa;
    --border-gray: #e0e0e0;
    --text-dark: #333;
    --text-muted: #666;
    --background-gray: #f5f5f5;
}

body {
    background-color: var(--background-gray);
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; */
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: var(--text-dark);
}

/* Header/Navbar */
.top-navbar {
    /* background-color: white; */
    /* border-bottom: 1px solid var(--border-gray); */
    padding: 8px 0;
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); */
}

button.success-green {
    background-color: #6BFFBC !important;
    color: #000 !important;
    font-weight: 700;
}

button.success-green:hover {
    color: #FFF !important;
}

.navbar-brand {
    font-weight: bold;
    color: var(--text-dark) !important;
    font-size: 16px;
}

.nav-item .nav-link {
    color: var(--text-muted) !important;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 0 2px;
}

.nav-item .nav-link.active {
    background-color: var(--primary-blue);
    color: white !important;
}

.nav-item .nav-link i {
    font-size: 12px;
    margin-right: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.credits-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.credits-badge {
    background-color: #d9d9d9;
    color: #000 !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.btn-buy-credits {
    background-color: var(--primary-blue);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Main Content Area */
.main-content {
    padding: 20px;
}

/* Catalog Header */
.catalog-header {
    background-color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.catalog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
}

.catalog-title i {
    margin-right: 8px;
    font-size: 14px;
}

.search-wrapper {
    position: relative;
    max-width: 400px;
}

.search-input {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 40px 8px 16px;
    font-size: 13px;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.filter-status {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

/* Product Items */
.product-item {
    background-color: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-item.error-state {
    background-color: #ffe6e6;
    border-left: 4px solid var(--danger-red);
}

.product-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: cover;
}

.product-info h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--text-dark);
}

.product-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.product-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn-generate {
    background-color: white;
    border: 1px solid #ddd;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

.btn-generating {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: not-allowed;
}

.btn-regenerate {
    background-color: var(--danger-red);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

.btn-published {
    background-color: var(--success-green);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

.btn-published {
    font-weight: 600;
    border-radius: 20px;
    /* font-size: 0.9rem; */
    padding: 0.4rem 1.2rem;
}

.btn-published.btn-primary {
    background-color: #2da8ff;
    border: none;
}

.btn-published.btn-success {
    background-color: #6BFFBC;
    border: none;
}

.btn-published.btn-secondary {
    background-color: #ccc;
    border: none;
}

.btn-pill {
    font-weight: 700 !important;
    color: #000;
}

.btn-options {
    background-color: white;
    border: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.btn-photo {
    background-color: var(--text-dark);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

/* Error Message */
.error-message {
    color: var(--warning-orange);
    font-size: 12px;
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.error-message i {
    margin-right: 6px;
    font-size: 14px;
}

/* Action Menu */
.action-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.action-menu button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.action-menu button i {
    margin-right: 4px;
    font-size: 12px;
}

.action-menu button:hover {
    color: var(--text-dark);
}

/* Pagination */
.pagination-wrapper {
    background-color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-products {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination {
    margin: 0;
}

.page-link {
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: 13px;
}

.page-link:hover {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.page-item.active .page-link {
    background-color: var(--text-dark);
    color: white;
}

.search-wrapper {
    width: 100%;
    position: relative;
    /* se precisar posicionar o ícone */
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-right {
        width: 100%;
        justify-content: flex-end;
    }

    .action-menu {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/** STEPS */
.step-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0;
    /* border-radius: 0.25rem; */
    overflow: hidden;
}

.step-number {
    background-color: #0d8ce0;
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    min-width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number.bg-success {
    background-color: #8cc34b !important;
}

.step-text {
    flex: 1;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1.1;
}

/* @media (max-width: 767.98px) {
      .step-box {
        flex-direction: column;
        text-align: center;
      }
      .step-number {
        width: 100%;
        font-size: 1.5rem;
      }
      .step-text {
        padding: 0.75rem;
      }
    } */

.btn-step-black {
    height: 50px;
    font-size: 1em;
}