/* Dashboard Tabs Specific Styles */

/* Campaigns Tab */
.campaigns-empty {
    padding: 20px 0;
}

.empty-state {
    background: white;
    padding: 60px;
    border-radius: 24px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    margin-bottom: 48px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.empty-state p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 24px;
}

.campaign-ideas h3 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.idea-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.idea-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.idea-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 12px;
}

.idea-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.idea-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Settings Tab */
.settings-section {
    margin-bottom: 40px;
}

.settings-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.settings-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.setting-row p {
    color: #64748b;
    font-size: 0.85rem;
}

.danger-zone .settings-card {
    border-color: #fee2e2;
}

.danger-zone h2 {
    color: #ef4444;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Shared Dashboard Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Table Elements (when not using tables.css) */
.status-pill {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.status-pill.scheduled {
    background: #fef9c3;
    color: #854d0e;
}

.status-pill.draft {
    background: #f1f5f9;
    color: #475569;
}

.status-pill.revoked {
    background: #fee2e2;
    color: #991b1b;
}

.badge-type {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Campaign Link Hover Effect */
.table-actions {
    display: flex;
    gap: 12px;
}

.search-input {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: #f8fafc;
    font-size: 0.9rem;
    width: 240px;
    transition: all 0.2s ease;
}

/* Mobile Overrides for Tabs & Tables */
@media (max-width: 768px) {
    .idea-cards {
        grid-template-columns: 1fr;
    }

    .table-container {
        padding: 16px;
        margin: 0 -16px;
        border-radius: 0;
        overflow-x: auto;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .search-input {
        width: 100%;
    }

    .data-table th,
    .data-table td {
        padding: 12px;
        font-size: 0.85rem;
    }

    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        display: none;
    }

    .data-table th:nth-child(4),
    .data-table td:nth-child(4) {
        display: none;
    }

    .data-table th:nth-child(5),
    .data-table td:nth-child(5) {
        display: table-cell !important;
    }
}

@media (max-width: 600px) {

    /* Staff Table Mobile Optimization */
    .staff-table thead {
        display: none;
    }

    .staff-table,
    .staff-table tbody,
    .staff-table tr {
        display: block;
        width: 100%;
    }

    .staff-table tr {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        position: relative;
        padding: 12px;
        display: grid;
        grid-template-areas: "member status" "activity activity" "value actions";
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .staff-table td {
        display: block;
        padding: 0 !important;
        border: none !important;
    }

    .staff-member {
        grid-area: member;
        margin-bottom: 4px;
    }

    .staff-status {
        grid-area: status;
        text-align: right;
    }

    .staff-activity {
        grid-area: activity;
        display: flex;
        gap: 12px;
        background: #f8fafc;
        padding: 10px !important;
        border-radius: 8px;
        margin: 4px 0;
    }

    .staff-value {
        grid-area: value;
        align-self: center;
    }

    .staff-actions {
        grid-area: actions;
        text-align: right !important;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }
}