/**
 * CX Wins Frontend Styles
 */

/* ============================================================================
   FALLBACK VARIABLES - Navy Blue theme to match Team Sync
   ============================================================================ */

.ds-plugin-wrap,
.cxw-dashboard,
.cxw-team-wins,
.cxw-supervisor-view,
.cxw-single-win {
    --ds-neutral-0: #ffffff;
    --ds-neutral-50: #f8fafc;
    --ds-neutral-100: #f1f5f9;
    --ds-neutral-200: #e2e8f0;
    --ds-neutral-300: #cbd5e1;
    --ds-neutral-400: #94a3b8;
    --ds-neutral-500: #64748b;
    --ds-neutral-600: #475569;
    --ds-neutral-700: #334155;
    --ds-neutral-800: #1e293b;
    --ds-neutral-900: #0f172a;
    /* Navy Blue Primary - matching Team Sync */
    --ds-primary-50: #EFF6FF;
    --ds-primary-100: #DBEAFE;
    --ds-primary-200: #BFDBFE;
    --ds-primary-300: #93C5FD;
    --ds-primary-400: #60A5FA;
    --ds-primary-500: #1E3A5F;
    --ds-primary-600: #172E4D;
    --ds-primary-700: #10243D;
    --ds-radius-sm: 4px;
    --ds-radius-md: 6px;
    --ds-radius-lg: 8px;
    --ds-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ds-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

/* ============================================================================
   GENERAL LAYOUT
   ============================================================================ */

.cxw-dashboard,
.cxw-team-wins,
.cxw-supervisor-view,
.cxw-single-win {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-family: var(--ds-font-family);
    font-size: 14px;
    color: #334155;
    color: var(--ds-neutral-700);
}

/* Stats Row - Horizontal grid like Goals */
.cxw-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .cxw-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cxw-stats-row .ds-stat-box {
    background: #ffffff;
    background: var(--ds-neutral-0);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--ds-neutral-200);
    border-radius: 8px;
    border-radius: var(--ds-radius-lg);
    padding: 16px 20px;
    text-align: center;
}

.cxw-stats-row .ds-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    color: var(--ds-neutral-900);
    margin-bottom: 4px;
}

.cxw-stats-row .ds-stat-label {
    font-size: 12px;
    color: #64748b;
    color: var(--ds-neutral-500);
    font-weight: 500;
}

/* Header Row - Like Goals */
.cxw-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cxw-page-title {
    font-size: 24px;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.cxw-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Filters Panel - Collapsible */
.cxw-filters-panel {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.cxw-filters-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.cxw-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cxw-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cxw-filter-group .ds-input,
.cxw-filter-group .ds-select {
    min-width: 150px;
}

.cxw-filter-actions {
    flex-direction: row;
    gap: 8px;
    align-self: flex-end;
}

/* Section Header - Like "My Goals" */
.cxw-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cxw-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    color: var(--ds-neutral-900);
    margin: 0;
}

/* Action Bar - Legacy, keeping for compatibility */
.cxw-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cxw-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cxw-filters .ds-input,
.cxw-filters select,
.cxw-filters input {
    width: auto;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border: 1px solid var(--ds-neutral-200);
    border-radius: 6px;
    border-radius: var(--ds-radius-md);
    background: #ffffff;
    background: var(--ds-neutral-0);
}

/* ============================================================================
   BUTTONS - Navy Blue Theme
   ============================================================================ */

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.ds-btn-primary,
a.ds-btn-primary,
a.ds-btn-primary:link,
a.ds-btn-primary:visited {
    background: #1E3A5F;
    color: #ffffff !important;
    border-color: #1E3A5F;
}

.ds-btn-primary:hover,
a.ds-btn-primary:hover {
    background: #172E4D;
    border-color: #172E4D;
    color: #ffffff !important;
}

.ds-btn-secondary,
a.ds-btn-secondary,
a.ds-btn-secondary:link,
a.ds-btn-secondary:visited {
    background: #ffffff;
    color: #1E3A5F !important;
    border-color: #CBD5E1;
}

.ds-btn-secondary:hover,
a.ds-btn-secondary:hover {
    background: #F8FAFC;
    border-color: #1E3A5F;
    color: #1E3A5F !important;
}

.ds-btn-danger,
a.ds-btn-danger {
    background: #ffffff;
    color: #dc2626 !important;
    border-color: #fecaca;
}

.ds-btn-danger:hover,
a.ds-btn-danger:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.ds-btn-ghost {
    background: transparent;
    color: #64748b;
    border-color: transparent;
}

.ds-btn-ghost:hover {
    background: #f8fafc;
}

.ds-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.ds-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* ============================================================================
   WIN CARDS - Matching Goals Style
   ============================================================================ */

.cxw-wins-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cxw-win-card {
    background: var(--ds-neutral-0);
    border: 1px solid var(--ds-neutral-200);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cxw-win-card:hover {
    border-color: var(--ds-neutral-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cxw-win-card-content {
    padding: 20px;
}

/* Card Top Row - Serial and Author */
.cxw-win-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cxw-win-card-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cxw-win-card-top-right {
    flex-shrink: 0;
}

/* Consistent Badge Sizing */
.cxw-serial,
.cxw-author-badge,
.cxw-shared-badge,
.cxw-tier-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.cxw-serial {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    color: #64748B;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
}

.cxw-author-badge {
    gap: 4px;
    color: #1E3A5F;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.cxw-author-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Shared Badge - consistent with others */
.cxw-shared-badge {
    gap: 4px;
    color: #1E3A5F;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.cxw-shared-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Card Title */
.cxw-win-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Card Excerpt */
.cxw-win-card-excerpt {
    font-size: 14px;
    color: var(--ds-neutral-600);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

/* Card Meta Row */
.cxw-win-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ds-neutral-100);
}

.cxw-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ds-neutral-500);
}

.cxw-meta-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--ds-neutral-400);
}

/* Card Badges Row */
.cxw-win-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* Card Actions - Like Goals View/Edit/Delete */
.cxw-win-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cxw-win-card-actions .ds-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================================
   TIER BADGES - With star icon and shine animation
   ============================================================================ */

.cxw-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.cxw-badge-star {
    font-size: 10px;
}

/* Subtle shine animation */
.cxw-badge-shine {
    background-size: 200% 100%;
}

.cxw-badge-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

/* Individual tier colors */
.cxw-tier-bronze {
    background: #FEF3C7 !important;
    border-color: #D97706 !important;
    color: #92400E !important;
}

.cxw-tier-silver {
    background: #F3F4F6 !important;
    border-color: #9CA3AF !important;
    color: #374151 !important;
}

.cxw-tier-gold {
    background: #FEF08A !important;
    border-color: #EAB308 !important;
    color: #713F12 !important;
}

.cxw-tier-platinum {
    background: #374151 !important;
    border-color: #1F2937 !important;
    color: #FFFFFF !important;
}

/* Platinum needs brighter shine */
.cxw-tier-platinum.cxw-badge-shine::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
}

/* ============================================================================
   TIER SELECTOR (in modal) - Brighter colors
   ============================================================================ */

.cxw-tier-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cxw-tier-option {
    cursor: pointer;
}

.cxw-tier-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cxw-tier-option-inner {
    display: block;
    padding: 12px 14px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.cxw-tier-option:hover .cxw-tier-option-inner {
    background: #F8FAFC;
}

.cxw-tier-option input:checked + .cxw-tier-option-inner,
.cxw-tier-option.is-selected .cxw-tier-option-inner {
    background: #F8FAFC;
}

/* Tier-specific border colors when selected */
.cxw-tier-option input[value="bronze"]:checked + .cxw-tier-option-inner {
    border-color: #D97706;
    background: #FFFBEB;
}

.cxw-tier-option input[value="silver"]:checked + .cxw-tier-option-inner {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

.cxw-tier-option input[value="gold"]:checked + .cxw-tier-option-inner {
    border-color: #EAB308;
    background: #FEFCE8;
}

.cxw-tier-option input[value="platinum"]:checked + .cxw-tier-option-inner {
    border-color: #6366F1;
    background: #EEF2FF;
}

.cxw-tier-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Tier-specific label colors */
.cxw-tier-option input[value="bronze"] ~ .cxw-tier-option-inner .cxw-tier-label,
.cxw-tier-option input[value="bronze"]:checked + .cxw-tier-option-inner .cxw-tier-label {
    color: #B45309;
}

.cxw-tier-option input[value="silver"] ~ .cxw-tier-option-inner .cxw-tier-label {
    color: #6B7280;
}

.cxw-tier-option input[value="gold"] ~ .cxw-tier-option-inner .cxw-tier-label,
.cxw-tier-option input[value="gold"]:checked + .cxw-tier-option-inner .cxw-tier-label {
    color: #A16207;
}

.cxw-tier-option input[value="platinum"] ~ .cxw-tier-option-inner .cxw-tier-label {
    color: #374151;
}

.cxw-tier-option input[value="platinum"]:checked + .cxw-tier-option-inner .cxw-tier-label {
    color: #1F2937;
}

.cxw-tier-option input[value="platinum"]:checked + .cxw-tier-option-inner {
    border-color: #374151;
    background: #F3F4F6;
}

.cxw-tier-desc {
    display: block;
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

/* ============================================================================
   WIN CARD TOP - Two column layout
   ============================================================================ */

.cxw-win-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cxw-win-card-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cxw-win-card-top-right {
    flex-shrink: 0;
}

/* ============================================================================
   TEAM WINS FILTERS - Compact with labels
   ============================================================================ */

.cxw-team-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.cxw-filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cxw-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cxw-filter-item .ds-input,
.cxw-filter-item select,
.cxw-filter-item input {
    min-width: 140px;
    padding: 8px 10px;
    font-size: 13px;
}

.cxw-filter-item.cxw-filter-actions {
    align-self: flex-end;
}

.cxw-team-wins-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cxw-team-win-card {
    overflow: hidden;
}

.cxw-team-win-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.cxw-team-win-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cxw-team-win-author img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.cxw-author-info {
    display: flex;
    flex-direction: column;
}

.cxw-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #1E293B;
}

.cxw-win-timestamp {
    font-size: 12px;
    color: #64748B;
}

.cxw-team-win-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cxw-win-content {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 14px;
}

.cxw-team-win-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--ds-neutral-200);
    background: var(--ds-neutral-50);
}

.cxw-engagement {
    display: flex;
    gap: 12px;
}

.cxw-kudos-btn,
.cxw-toggle-comments-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--ds-neutral-600);
    background: transparent;
    border: 1px solid var(--ds-neutral-200);
    border-radius: var(--ds-radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cxw-kudos-btn:hover,
.cxw-toggle-comments-btn:hover {
    background: var(--ds-neutral-100);
    border-color: var(--ds-neutral-300);
}

.cxw-kudos-btn.has-kudos {
    color: #D4AF37;
    border-color: #D4AF37;
    background: #FFF9E6;
}

.cxw-kudos-btn .dashicons,
.cxw-toggle-comments-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Customer Quote */
.cxw-customer-quote {
    font-size: 13px;
    font-style: italic;
    color: var(--ds-neutral-600);
    margin: 12px 0 0 0;
    padding: 12px 16px;
    background: var(--ds-neutral-50);
    border-left: 3px solid var(--ds-primary-300);
    border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;
}

/* ============================================================================
   COMMENTS SECTION
   ============================================================================ */

.cxw-comments-section {
    padding: 16px 18px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.cxw-comments-list {
    margin-bottom: 16px;
}

.cxw-comment {
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}

.cxw-comment:last-child {
    border-bottom: none;
}

.cxw-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.cxw-comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cxw-comment-author-info strong {
    font-size: 13px;
    color: #1E293B;
}

.cxw-comment-time {
    font-size: 11px;
    color: #94A3B8;
}

.cxw-comment-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cxw-comment:hover .cxw-comment-actions {
    opacity: 1;
}

.cxw-edit-comment-btn,
.cxw-delete-comment-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94A3B8;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.cxw-edit-comment-btn:hover {
    background: #F1F5F9;
    color: #1E3A5F;
}

.cxw-delete-comment-btn:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.cxw-edit-comment-btn .dashicons,
.cxw-delete-comment-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.cxw-comment-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.cxw-no-comments {
    font-size: 13px;
    color: #94A3B8;
    font-style: italic;
    text-align: center;
    padding: 16px;
}

.cxw-add-comment {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.cxw-add-comment textarea {
    flex: 1;
    font-size: 13px;
}

/* ============================================================================
   SUPERVISOR VIEW
   ============================================================================ */

.cxw-supervisor-filters {
    margin-bottom: 20px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 8px;
}

.cxw-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.cxw-filter-group label {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
}

.cxw-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cxw-team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

/* ============================================================================
   SINGLE WIN VIEW
   ============================================================================ */

.cxw-back-link {
    margin-bottom: 16px;
}

.cxw-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ds-primary-600);
    text-decoration: none;
}

.cxw-back-link a:hover {
    text-decoration: underline;
}

.cxw-single-win-card {
    margin-bottom: 20px;
}

.cxw-single-win-header {
    padding: 18px 22px;
}

.cxw-single-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.cxw-single-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cxw-single-actions {
    display: flex;
    gap: 8px;
}

.cxw-single-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ds-neutral-900);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.cxw-single-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.cxw-single-author-info img {
    border-radius: 50%;
}

.cxw-separator {
    color: var(--ds-neutral-300);
}

.cxw-single-content {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 14px;
}

.cxw-single-customer,
.cxw-single-quote {
    margin-bottom: 16px;
}

.cxw-single-customer h4,
.cxw-single-quote h4 {
    font-size: 11px;
    font-weight: 600;
    color: var(--ds-neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
}

.cxw-customer-quote-full {
    padding: 16px 20px;
    background: var(--ds-neutral-50);
    border-left: 4px solid var(--ds-primary-300);
    border-radius: 0 var(--ds-radius-lg) var(--ds-radius-lg) 0;
    font-style: italic;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.cxw-single-footer {
    display: flex;
    justify-content: flex-start;
}

.cxw-engagement-section {
    display: flex;
    gap: 10px;
}

.cxw-comments-card {
    margin-bottom: 20px;
}

.cxw-comment-count-badge {
    background: var(--ds-neutral-200);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: 8px;
}

.cxw-add-comment-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ds-neutral-200);
}

.cxw-add-comment-form h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
}

.cxw-add-comment-form textarea {
    margin-bottom: 10px;
    font-size: 13px;
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.ds-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.ds-empty-state-icon {
    margin-bottom: 16px;
    color: var(--ds-neutral-300);
}

.ds-empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ds-neutral-800);
    margin: 0 0 8px 0;
}

.ds-empty-state-description {
    font-size: 14px;
    color: var(--ds-neutral-500);
    margin: 0 0 20px 0;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.cxw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ds-neutral-200);
}

.cxw-pagination a,
.cxw-pagination span {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--ds-radius-md);
    text-decoration: none;
}

.cxw-pagination a {
    color: var(--ds-neutral-700);
    background: var(--ds-neutral-50);
    border: 1px solid var(--ds-neutral-200);
}

.cxw-pagination a:hover {
    background: var(--ds-neutral-100);
}

.cxw-pagination .current {
    background: var(--ds-primary-500);
    color: white;
    border: 1px solid var(--ds-primary-500);
}

/* ============================================================================
   MODAL
   ============================================================================ */

.ds-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.ds-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ds-modal-lg {
    max-width: 700px;
}

.ds-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--ds-neutral-200);
}

.ds-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
    color: var(--ds-neutral-900);
}

.ds-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    color: var(--ds-neutral-400);
    padding: 0;
    line-height: 1;
}

.ds-modal-close:hover {
    color: #64748b;
    color: var(--ds-neutral-500);
}

.ds-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.ds-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    border-top: 1px solid var(--ds-neutral-200);
    background: #f8fafc;
    background: var(--ds-neutral-50);
}

/* Form Styles */
.ds-form-group {
    margin-bottom: 16px;
}

.ds-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    color: var(--ds-neutral-700);
    margin-bottom: 6px;
}

.ds-label-required::after {
    content: " *";
    color: #dc2626;
}

.ds-input,
.ds-textarea,
.ds-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border: 1px solid var(--ds-neutral-200);
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-input:focus,
.ds-textarea:focus,
.ds-select:focus {
    outline: none;
    border-color: #2563eb;
    border-color: var(--ds-primary-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.ds-help-text {
    font-size: 12px;
    color: #64748b;
    color: var(--ds-neutral-500);
    margin-top: 4px;
}

/* Toggle/Checkbox */
.ds-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.ds-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Cards */
.ds-card {
    background: #ffffff;
    background: var(--ds-neutral-0);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--ds-neutral-200);
    border-radius: 8px;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
}

.ds-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--ds-neutral-200);
}

.ds-card-body {
    padding: 20px;
}

.ds-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    border-top: 1px solid var(--ds-neutral-200);
    background: #f8fafc;
    background: var(--ds-neutral-50);
}

/* Badges */
.ds-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid;
}

.ds-badge-info {
    background: #f0f7ff;
    color: #2563eb;
    border-color: #b8dbff;
}

.ds-badge-success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

.ds-badge-default {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .cxw-back-link,
    .cxw-single-actions,
    .cxw-engagement-section,
    .cxw-comments-card,
    .cxw-add-comment-form,
    .cxw-action-bar {
        display: none !important;
    }
    
    .cxw-single-win-card,
    .cxw-win-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .cxw-dashboard,
    .cxw-team-wins,
    .cxw-supervisor-view,
    .cxw-single-win {
        padding: 12px;
    }
    
    .cxw-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cxw-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cxw-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .cxw-filters .ds-input {
        width: 100%;
    }
    
    .cxw-tier-selector {
        grid-template-columns: 1fr;
    }
    
    .cxw-team-win-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cxw-single-header-top {
        flex-direction: column;
    }
    
    .cxw-win-card-actions {
        flex-wrap: wrap;
    }
}
