/* ============================================
   STATUS BADGES
   ============================================ */
.rts-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rts-status-active {
    background: #c6e1c6;
    color: #1e7e34;
}

.rts-status-inactive {
    background: #f1d8d8;
    color: #8a2b2b;
}

.rts-status-upcoming {
    background: #d8e5f1;
    color: #1e5f8a;
}

.rts-status-ended {
    background: #e8e8e8;
    color: #666;
}

.rts-status-excluded {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* ============================================
   ANALYTICS DASHBOARD
   ============================================ */
.rts-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rts-stat-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.rts-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.rts-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #23282d;
}

.rts-stat-percentage {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* ============================================
   SETTINGS FORM - SCHEDULE FIELDS
   ============================================ */
.rts-schedule-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rts-date-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rts-date-field label {
    font-weight: 600;
}

.rts-schedule-preview {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.rts-schedule-preview div {
    margin: 5px 0;
}

/* ============================================
   SURVEY NOTICES (Frontend)
   ============================================ */
.rts-survey-notice {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
}

.rts-survey-notice h2 {
    margin: 0;
    color: #666;
}

.rts-survey-inactive {
    border-left: 4px solid #dc3232;
}

.rts-survey-upcoming {
    border-left: 4px solid #f1c40f;
}

.rts-survey-ended {
    border-left: 4px solid #999;
}

.rts-survey-excluded {
    border-left: 4px solid #f1c40f;
    background: #fef9e7;
}

.rts-survey-excluded h2 {
    color: #8a7e2b;
}

/* ============================================
   ADMIN ACTIONS BUTTONS
   ============================================ */
.rts-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.rts-action-buttons .button {
    margin: 2px 0;
}

.rts-action-buttons .button.button-small {
    font-size: 12px;
    padding: 0 10px;
    line-height: 28px;
    min-height: 30px;
}

.rts-action-buttons .rts-toggle-excluded.button-primary {
    background: #f1c40f;
    border-color: #f1c40f;
    color: #333;
}

.rts-action-buttons .rts-toggle-excluded.button-primary:hover {
    background: #d4ac0d;
    border-color: #d4ac0d;
}

/* ============================================
   RESET STATISTICS SECTION
   ============================================ */
.rts-reset-section-wrapper {
    margin-top: 20px;
}

.rts-reset-section {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rts-reset-section h3 {
    margin-top: 0;
    color: #23282d;
}

.rts-reset-description {
    color: #666;
    margin-bottom: 15px;
}

.rts-reset-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.rts-reset-warning p {
    margin: 0;
    color: #856404;
}

.rts-reset-option {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.rts-reset-option:last-child {
    margin-bottom: 0;
}

.rts-reset-option h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #23282d;
}

.rts-reset-option p {
    margin-top: 0;
    margin-bottom: 10px;
    color: #666;
}

.rts-reset-question-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rts-reset-question-row .regular-text {
    min-width: 250px;
}

.button-danger {
    background: #dc3232;
    border-color: #dc3232;
    color: white;
}

.button-danger:hover {
    background: #b52222;
    border-color: #b52222;
    color: white;
}

.button-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rts-changes-result {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

.rts-changes-result h4 {
    margin-top: 0;
    color: #23282d;
}

.rts-changes-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.rts-changes-actions .button {
    margin-top: 5px;
}

/* ============================================
   FORM SELECTOR (Settings Page)
   ============================================ */
.rts-form-selector {
    margin: 20px 0;
}

.rts-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rts-form-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.rts-form-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.rts-form-card.excluded-card {
    border-left: 4px solid #ffc107;
    background: #fefef5;
}

.rts-form-card.excluded-card:hover {
    border-left-color: #d4ac0d;
}

.rts-form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.rts-form-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #23282d;
}

.rts-form-card-body {
    color: #555;
    font-size: 14px;
}

.rts-form-card-body p {
    margin: 5px 0;
}

.rts-form-card-body strong {
    color: #23282d;
}

.rts-form-card-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.rts-click-hint {
    color: #2271b1;
    font-size: 13px;
}

.rts-excluded-hint {
    color: #856404;
    font-size: 12px;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 5px;
}

.rts-form-select-dropdown {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rts-form-select-dropdown h3 {
    margin-top: 0;
}

/* ============================================
   SETTINGS HEADER
   ============================================ */
.rts-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.rts-settings-header h2 {
    margin: 0;
}

/* Add to your theme's stylesheet or admin.css */
.rts-trophy-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rts-trophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.rts-trophy-item.earned {
    border-color: #28a745;
}

.rts-trophy-item.pending {
    border-color: #ffc107;
    background: #fff3cd;
}

.rts-trophy-item.locked {
    opacity: 0.6;
    filter: grayscale(0.3);
}

@media (max-width: 768px) {
    .rts-trophy-case-wrapper .rts-trophy-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
}

/* ============================================
   BUDDYPRESS RUN THE SEAS ADMIN PROFILE
   ============================================ */

#buddypress .rts-admin-profile {
    color: #1d2939;
    background: #f6f8fb;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
}

#buddypress .rts-admin-profile .wrap {
    max-width: none;
    margin: 0;
    color: #1d2939;
}

#buddypress .rts-admin-profile h1,
#buddypress .rts-admin-profile h2,
#buddypress .rts-admin-profile h3,
#buddypress .rts-admin-profile h4,
#buddypress .rts-admin-profile p,
#buddypress .rts-admin-profile label,
#buddypress .rts-admin-profile td,
#buddypress .rts-admin-profile th {
    color: #1d2939;
}

#buddypress .rts-admin-profile .wp-list-table,
#buddypress .rts-admin-profile .form-table,
#buddypress .rts-admin-profile .widefat {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-collapse: collapse;
}

#buddypress .rts-admin-profile .wp-list-table th,
#buddypress .rts-admin-profile .wp-list-table td,
#buddypress .rts-admin-profile .widefat th,
#buddypress .rts-admin-profile .widefat td {
    padding: 12px;
    color: #1d2939;
    border: 1px solid #d0d5dd;
}

#buddypress .rts-admin-profile .wp-list-table th,
#buddypress .rts-admin-profile .widefat thead th {
    background: #eaf2ff;
    color: #102a56;
    font-weight: 700;
}

#buddypress .rts-admin-profile .wp-list-table tbody tr:nth-child(even),
#buddypress .rts-admin-profile .widefat.striped tbody tr:nth-child(even) {
    background: #f8fafc;
}

#buddypress .rts-admin-profile a {
    color: #0b63ce;
}

#buddypress .rts-admin-profile .button,
#buddypress .rts-admin-profile .button-primary,
#buddypress .rts-admin-profile input[type='submit'],
#buddypress .rts-admin-profile button {
    background: #0b63ce;
    border-color: #084fa4;
    color: #ffffff;
    text-shadow: none;
}

#buddypress .rts-admin-profile .button:hover,
#buddypress .rts-admin-profile .button-primary:hover,
#buddypress .rts-admin-profile input[type='submit']:hover,
#buddypress .rts-admin-profile button:hover {
    background: #084fa4;
    color: #ffffff;
}

#buddypress .rts-admin-profile input,
#buddypress .rts-admin-profile select,
#buddypress .rts-admin-profile textarea {
    color: #1d2939;
    background: #ffffff;
    border-color: #98a2b3;
}

/* Some BuddyPress themes do not use the #buddypress wrapper. */
.rts-admin-profile {
    color: #1d2939 !important;
    background: #f6f8fb !important;
}

.rts-admin-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 12px;
}

.rts-admin-dashboard-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #98a2b3;
    border-radius: 6px;
    background: #ffffff;
    color: #0b63ce;
    font-weight: 600;
    text-decoration: none;
}

.rts-admin-dashboard-nav__link:hover,
.rts-admin-dashboard-nav__link:focus,
.rts-admin-dashboard-nav__link.is-active {
    border-color: #084fa4;
    background: #0b63ce;
    color: #ffffff;
}

.rts-admin-dashboard-nav__link--logout {
    margin-left: auto;
    border-color: #b42318;
    color: #b42318;
}

.rts-admin-dashboard-nav__link--logout:hover,
.rts-admin-dashboard-nav__link--logout:focus {
    border-color: #b42318;
    background: #b42318;
    color: #ffffff;
}

.rts-admin-access-denied {
    margin: 24px auto;
    padding: 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f6f8fb;
    color: #1d2939;
}

.rts-admin-profile .wrap,
.rts-admin-profile .wrap h1,
.rts-admin-profile .wrap h2,
.rts-admin-profile .wrap h3,
.rts-admin-profile .wrap p,
.rts-admin-profile .wrap td,
.rts-admin-profile .wrap th {
    color: #1d2939 !important;
}

.rts-admin-profile .wp-list-table,
.rts-admin-profile .widefat {
    background: #ffffff !important;
}

.rts-member-profile {
    max-width: 780px;
    margin: 20px auto;
    padding: 28px;
    background: #f6f8fb;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    color: #1d2939;
}

.rts-member-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.rts-member-profile-form label {
    display: grid;
    gap: 6px;
    color: #1d2939;
    font-weight: 600;
}

.rts-member-profile-form input,
.rts-member-profile-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #1d2939;
    background: #fff;
    border: 1px solid #98a2b3;
    border-radius: 6px;
}

.rts-member-profile-form button {
    padding: 11px 18px;
    color: #fff;
    background: #0b63ce;
    border: 1px solid #084fa4;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.rts-profile-full { grid-column: 1 / -1; }
.rts-profile-notice { padding: 12px 14px; background: #e8f5e9; border-left: 4px solid #2e7d32; border-radius: 4px; }

.rts-customer-account-links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    max-width: 1200px;
    margin: 12px auto;
    padding: 0 20px;
}

.rts-customer-account-links a {
    display: inline-block;
    padding: 9px 15px;
    color: #fff !important;
    background: #0b63ce;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.rts-customer-account-links a:hover { background: #084fa4; color: #fff !important; }

@media (max-width: 640px) {
    .rts-member-profile-form { grid-template-columns: 1fr; }
}
