.api-landing {
    background-color: #f9f9f9;
    padding: 3rem 1rem;
    font-family: 'Chivo', sans-serif;
    color: #333;
}

.api-landing .container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.api-key-container {
    margin-top: 0.5rem;
    max-width: 100%;
}

.key-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: block;
}

.key-input-group {
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
    display: block;
}

.key-input-group:hover,
.key-input-group:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
    background-color: #ffffff;
}

.key-input-group code {
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    margin-right: 8px;
}

.copy-btn-icon {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn-icon:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background-color: #f0fdf4;
    transform: translateY(-1px);
}

.helper-text {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.helper-text svg {
    flex-shrink: 0;
    color: var(--text-gray);
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.15rem;
    color: #666;
    text-align: center;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.button.primary {
    background-color: #74b72e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.button.primary:hover {
    background-color: #689f38;
}

.button.secondary {
    background-color: transparent;
    border: 2px solid #74b72e;
    color: #74b72e;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.button.secondary:hover {
    background-color: #74b72e;
    color: #fff;
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
    border-left: 4px solid #74b72e;
    padding-left: 0.75rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
}

.section a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: underline;
}

.section a:hover {
    text-decoration: none;
}

.partner-login-hint {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: #444;
    font-family: 'Chivo', sans-serif;
}

.partner-login-hint a {
    color: #2e7d32;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.partner-login-hint a:hover {
    color: #74b72e;
    text-decoration: none;
}

.partner-login-section {
    background-color: #f4f4f4;
    padding: 3rem 1rem;
    font-family: 'Chivo', sans-serif;
}

.login-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.login-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.button.primary.full-width {
    width: 100%;
    background-color: #74b72e;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.button.primary.full-width:hover {
    background-color: #689f38;
}

.login-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #444;
}

.login-note a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: underline;
}

.login-note a:hover {
    text-decoration: none;
}

/* --- New Claim Button Styling --- */
.claim-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: center;
}

.claim-business-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #777;
    text-decoration: none;
    background: transparent;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.claim-business-btn:hover {
    color: #2e7d32;
    background-color: #f1f8e9;
    border-color: #2e7d32;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.claim-business-btn:active {
    transform: translateY(0);
}

/* ========== MODERN DASHBOARD THEME ========== */
:root {
    --primary-green: #16a34a;
    --primary-dark: #15803d;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --text-dark: #111827;
    --text-gray: #6b7280;
}

.dashboard-page {
    background-color: var(--bg-gray);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

.partner-dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ========== MAIN CONTENT AREA ========== */
.main-content {
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.fade-in-content {
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


.htmx-indicator {
    display: none;
    opacity: 0;
    transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator {
    display: block;
    opacity: 1;
}
.htmx-request.htmx-indicator {
    display: block;
    opacity: 1;
}

/* ========== STATS GRID (Premium Cards) ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon-wrapper.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon-wrapper.green { background: #f0fdf4; color: #16a34a; }
.stat-icon-wrapper.orange { background: #fff7ed; color: #f97316; }
.stat-icon-wrapper.purple { background: #faf5ff; color: #a855f7; }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

/* ========== SEARCH & TABLES (Inventory) ========== */
.inventory-toolbar {
    margin-bottom: 0;
}

/* Floating Search Results */
#search-dropdown-results .search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.1s;
}
#search-dropdown-results .search-result-item:hover {
    background-color: #f9fafb;
}
#search-dropdown-results .search-result-item:last-child {
    border-bottom: none;
}

.partner-table {
    width: 100%;
    border-collapse: collapse;
}

.partner-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.partner-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.partner-table tr:hover td {
    background-color: #fcfcfc;
}

.partner-table img.product-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f4f6;
}

/* ========== FORMS & INPUTS ========== */
.styled-form input, .styled-form select {
    background: #fff;
    border: 1px solid #d1d5db;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.styled-form input:focus, .styled-form select:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}


.button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.button.green {
    background-color: var(--primary-green);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.button.green:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.button.gray {
    background-color: #f3f4f6;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
}

.button.gray:hover {
    background-color: #e5e7eb;
    color: #111827;
}


.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.active {
    background-color: #dcfce7;
    color: #166534;
}

.status-pill.inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .partner-dashboard-layout {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .partner-dashboard-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        padding: 1.5rem;
    }
}
