/* ========== GROUP INTEREST SYSTEM CSS ========== */
/* ZERO REGRESSION: Only new classes, no modifications to existing */

/* Group Action Panel */
.news-group-action-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #bfdbfe;
    animation: fadeInUp 0.5s ease;
}

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

.group-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.group-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
}

.group-stat-item i {
    color: #0A66C2;
    font-size: 0.9rem;
}

.group-stat-item strong {
    color: #0A66C2;
    font-size: 1.1rem;
}

.group-action-buttons {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.group-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.group-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.group-action-btn:active {
    transform: translateY(0);
}

.btn-express-interest {
    background: #0A66C2;
    color: white;
}

.btn-express-interest:hover {
    background: #095aba;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.2);
}

.btn-refer-friend {
    background: white;
    color: #0A66C2;
    border: 2px solid #0A66C2;
}

.btn-refer-friend:hover {
    background: #f0f7ff;
}

/* Progress Bar */
.group-progress-container {
    margin-top: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0A66C2, #3b82f6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Already Interested State */
.group-already-interested {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
}

.interest-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.interest-details {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #d1fae5;
}

.interest-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
}

.interest-detail-label {
    color: #64748b;
}

.interest-detail-value {
    color: #1e293b;
    font-weight: 600;
}

/* Interest Expression Modal (Shell Modal compatible) */
.interest-modal-content {
    padding: 5px;
}

.interest-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.interest-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-header {
    text-align: center;
    margin-bottom: 20px;
}

.step-header h3 {
    color: #1e293b;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.step-header p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Participation Options */
.participation-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.participation-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.participation-option:hover {
    border-color: #0A66C2;
    background: #f8fafc;
}

.participation-option.selected {
    border-color: #0A66C2;
    background: #f0f7ff;
}

.option-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A66C2;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.option-desc {
    color: #64748b;
    font-size: 0.8rem;
}

/* Form Groups */
.interest-form-group {
    margin-bottom: 20px;
}

.interest-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
}

.interest-form-group label i {
    margin-right: 8px;
    color: #0A66C2;
}

.ticket-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ticket-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-option:hover {
    border-color: #0A66C2;
    color: #0A66C2;
}

.ticket-option.active {
    border-color: #0A66C2;
    background: #f0f7ff;
    color: #0A66C2;
}

.custom-ticket-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #0A66C2;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-weight: 700;
}

.interest-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.interest-form-group textarea:focus {
    outline: none;
    border-color: #0A66C2;
}

.agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.agreement-check input {
    margin-top: 3px;
}

.agreement-check label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

/* Confirmation Step */
.confirmation-content {
    text-align: center;
    padding: 10px;
}

.confirmation-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.confirmation-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.ref-id {
    color: #0A66C2;
    font-weight: 800;
    font-size: 1.1rem;
}

.confirmation-note {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 12px;
    color: #0369a1;
    font-size: 0.85rem;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.confirmation-note i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Referral Modal Styles */
.referral-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
}

.referral-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.referral-tab.active {
    background: white;
    color: #0A66C2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referral-tab-content {
    display: none;
}

.referral-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.bulk-upload-area {
    text-align: center;
    padding: 30px 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.bulk-upload-area:hover {
    border-color: #0A66C2;
    background: #f8fafc;
}

.bulk-upload-area i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.upload-btn {
    display: inline-block;
    background: #0A66C2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

.upload-btn:hover {
    background: #095aba;
}

.or-divider {
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e2e8f0;
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

/* Step Navigation */
.interest-step-navigation {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.step-nav-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.step-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-step-back {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-step-next {
    background: #0A66C2;
    color: white;
}

.btn-step-submit {
    background: #10b981;
    color: white;
}

.btn-step-done {
    background: #f59e0b;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .group-action-buttons {
        flex-direction: column;
    }
    
    .group-action-btn {
        width: 100%;
    }
    
    .participation-option {
        padding: 12px;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Ensure modal content has proper spacing */
.interest-modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 5px 10px;
}

/* Make sure steps transition smoothly */
.interest-step {
    animation: fadeIn 0.3s ease;
}

/* Fix button alignment in modal footer */
.sm-footer .btn-step-back,
.sm-footer .btn-step-next,
.sm-footer .btn-step-submit,
.sm-footer .btn-step-done {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ensure confirmation step is properly styled */
.confirmation-content {
    text-align: center;
    padding: 20px 10px;
}

.confirmation-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.confirmation-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
    animation: slideUp 0.5s ease;
}

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

/* ========== INTEREST STATUS DISPLAY ========== */

.interest-expressed-status {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    animation: fadeInUp 0.5s ease;
}

.interest-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.interest-status-icon {
    width: 40px;
    height: 40px;
    background: #10b981;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.interest-status-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.interest-status-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}

.interest-details-grid {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #d1fae5;
}

.interest-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.interest-detail-item:last-child {
    border-bottom: none;
}

.interest-detail-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.interest-detail-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
}

.interest-ref-id {
    color: #0A66C2;
    font-weight: 800;
    font-size: 1.1rem;
}

.interest-note {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 12px;
    color: #0369a1;
    font-size: 0.85rem;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid #0A66C2;
}

/* Auto-advance animations */
.auto-advance {
    animation: slideOutLeft 0.3s ease forwards;
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

.slide-in {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Simplified modal steps */
.modal-step {
    display: none;
    min-height: 300px;
}

.modal-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Clean selection options */
.selection-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    background: white;
}

.selection-option:hover {
    border-color: #0A66C2;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.selection-option.selected {
    border-color: #0A66C2;
    background: #f0f7ff;
}

.selection-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A66C2;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.selection-content {
    flex: 1;
}

.selection-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 1rem;
}

.selection-description {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Ticket selection */
.ticket-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.ticket-option-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-option-simple:hover {
    border-color: #0A66C2;
    background: #f8fafc;
}

.ticket-option-simple.selected {
    border-color: #0A66C2;
    background: #f0f7ff;
}

.ticket-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0A66C2;
    margin-bottom: 5px;
}

.ticket-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}