.promos-page {
    color: #1f2937;
}

.promos-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.promos-breadcrumb strong {
    color: #1f2937;
    font-weight: 600;
}

.promos-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid;
}

.promos-alert.is-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.promos-alert.is-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.promos-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.promos-alert.is-success .promos-alert-icon {
    color: #16a34a;
}

.promos-alert.is-error .promos-alert-icon {
    color: #dc2626;
}

.promos-alert-content {
    flex: 1;
}

.promos-alert-content strong {
    display: block;
    margin-bottom: 2px;
}

.promos-alert.is-success strong {
    color: #166534;
}

.promos-alert.is-error strong {
    color: #991b1b;
}

.promos-alert-content p {
    margin: 0;
    font-size: 0.9rem;
}

.promos-alert.is-success p {
    color: #15803d;
}

.promos-alert.is-error p {
    color: #b91c1c;
}

.promos-alert-close {
    background: none;
    border: 0;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
}

.promos-alert-close:hover {
    color: #1f2937;
}

/* Header Card */
.promos-header-card,
.promos-toolbar-card,
.promos-table-card,
.promos-empty-state {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.promos-header-card {
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.promos-header-card h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #1f2937;
    font-size: 1.5rem;
}

.promos-header-card p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.promos-header-actions {
    flex-shrink: 0;
}

.promos-btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #6c8cf5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.promos-btn-add:hover {
    background: #5a79e6;
}

/* Stats Grid */
.promos-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.promos-stat-card {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.promos-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef4ff;
    color: #6c8cf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.promos-stat-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.84rem;
}

.promos-stat-card h3 {
    margin: 4px 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.02rem;
    color: #1f2937;
}

/* Toolbar */
.promos-toolbar-card {
    padding: 14px;
    margin-bottom: 14px;
    background: #eef4ff;
}

.promos-toolbar-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.promos-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 12px;
}

.promos-input-group i {
    color: #6b7280;
    font-size: 0.95rem;
}

.promos-input-group input,
.promos-input-group select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Poppins", sans-serif;
    color: #1f2937;
    font-size: 0.9rem;
}

.promos-input-group select {
    cursor: pointer;
}

.promos-filter-btn,
.promos-reset-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.promos-filter-btn {
    background: #6c8cf5;
    color: #ffffff;
    cursor: pointer;
}

.promos-filter-btn:hover {
    background: #5a79e6;
}

.promos-reset-btn {
    background: #ffffff;
    color: #1f2937;
    border-color: #d1d5db;
}

.promos-reset-btn:hover {
    background: #f9fafb;
}

/* Table */
.promos-table-wrapper {
    overflow-x: auto;
}

.promos-table {
    width: 100%;
    min-width: 1600px;
    border-collapse: collapse;
}

.promos-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
    white-space: nowrap;
    font-weight: 600;
}

.promos-table td {
    border-bottom: 1px solid #eef2f7;
    padding: 12px;
    vertical-align: middle;
    font-size: 0.91rem;
    color: #1f2937;
}

.promos-table tr:hover td {
    background: #f9fbff;
}

.promos-title {
    font-weight: 600;
}

.promos-code {
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.01em;
}

.promos-discount-value {
    font-weight: 600;
    color: #6c8cf5;
}

.promos-min-transaction {
    font-weight: 500;
}

.promos-period {
    font-size: 0.88rem;
}

.promos-quota {
    text-align: center;
}

.promos-used-count {
    text-align: center;
    font-weight: 600;
}

/* Badges */
.promos-loyal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.promos-loyal-badge.is-loyal {
    background: #dbeafe;
    color: #1e40af;
}

.promos-loyal-badge.is-general {
    background: #f3f4f6;
    color: #6b7280;
}

.promos-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.promos-status-badge.is-active {
    background: #dcfce7;
    color: #166534;
}

.promos-status-badge.is-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Actions */
.promos-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.promos-action-btn {
    border: 1px solid #dbe1eb;
    background: #ffffff;
    color: #1f2937;
    border-radius: 8px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}

.promos-action-btn.is-edit:hover {
    background: #eef4ff;
    border-color: #a8c5ff;
    color: #6c8cf5;
}

.promos-action-btn.is-activate {
    background: #f0fdf4;
    border-color: #a7f3d0;
    color: #166534;
}

.promos-action-btn.is-activate:hover {
    background: #dcfce7;
    border-color: #6ee7b7;
}

.promos-action-btn.is-deactivate {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.promos-action-btn.is-deactivate:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.promos-action-btn.is-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Pagination */
.promos-pagination-wrapper {
    margin-top: 18px;
}

/* Empty State */
.promos-empty-state {
    padding: 40px 20px;
    text-align: center;
}

.promos-empty-icon {
    font-size: 3.5rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.promos-empty-state h3 {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.promos-empty-state p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 0.95rem;
}

.promos-btn-add-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #6c8cf5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.promos-btn-add-empty:hover {
    background: #5a79e6;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .promos-toolbar-form {
        grid-template-columns: 1fr 1fr;
    }

    .promos-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .promos-header-card {
        flex-direction: column;
    }

    .promos-toolbar-form {
        grid-template-columns: 1fr;
    }

    .promos-stats-grid {
        grid-template-columns: 1fr;
    }

    .promos-table {
        min-width: 100%;
    }
}
