/* KiChallenge Main Styles */
.kichallenge-multi-step-form {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-step {
    padding: 30px;
    display: none;
}

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.step-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.kichallenge-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.kichallenge-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Loading Animation */
.loading-message {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Step 2 Layout Styles */
.kichallenge-step2-layout {
    margin-top: 20px;
}

.step2-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step2-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.8em;
}

.step2-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1.2em;
}

.two-box-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    min-height: 600px;
}

.left-box, .right-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    min-height: 500px;
}

.box-content {
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
}

/* Left Box - Visibility Description */
.visibility-description {
    margin-top: 20px;
}

.visibility-option-desc {
    animation: fadeIn 0.3s ease-in;
}

.visibility-option-desc h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.visibility-option-desc p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.visibility-option-desc ul {
    margin: 15px 0;
    padding-left: 20px;
}

.visibility-option-desc li {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
}

/* Right Box Content */
.challenge-details {
    margin-bottom: 30px;
}

.challenge-details h4 {
    color: #333;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    font-size: 1.3em;
}

.goal-display {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    font-size: 1.1em;
    line-height: 1.6;
    color: #2c3e50;
}

.description-content {
    position: relative;
}

.description-content pre {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.editable-description {
    margin-top: 15px;
}

.editable-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.6;
    resize: vertical;
    background: #f8fff8;
    box-sizing: border-box;
}

.edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Scheduling Section */
.scheduling-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.scheduling-section h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.3em;
}

.schedule-option {
    margin: 20px 0;
}

.schedule-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
}

.schedule-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.schedule-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Toggle Switch */
.duration-toggle, .recurrence-option {
    margin: 20px 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.toggle-label:hover {
    background: #f8f9fa;
}

.toggle-slider {
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

#full-day-toggle:checked + .toggle-label .toggle-slider,
#recurrence-toggle:checked + .toggle-label .toggle-slider {
    background: #4CAF50;
}

#full-day-toggle:checked + .toggle-label .toggle-slider:after,
#recurrence-toggle:checked + .toggle-label .toggle-slider:after {
    transform: translateX(26px);
}

/* Visibility Selection */
.visibility-selection {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.visibility-selection h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.3em;
}

.visibility-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.visibility-option input[type="radio"] {
    display: none;
}

.visibility-label {
    display: block;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
}

.visibility-option input[type="radio"]:checked + .visibility-label {
    border-color: #4CAF50;
    background: #f8fff8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Action Section */
.action-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

/* Step 3 Styles */
.kichallenge-step2 {
    margin-top: 30px;
}

.step2-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.preview-column, .config-column {
    flex: 1;
}

.preview-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    height: fit-content;
}

.preview-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.4;
}

.preview-goal {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
}

.preview-description pre {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

.preview-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.meta-item {
    background: #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #2c3e50;
    font-weight: 500;
}

.preview-date {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

.preview-date strong {
    color: #2c3e50;
}

/* Category Section */
.category-section, .media-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.category-section h4, .media-section h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.3em;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.category-btn {
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 1em;
    font-weight: 500;
}

.category-btn:hover {
    border-color: #4CAF50;
    background: #f8fff8;
    transform: translateY(-2px);
}

.category-btn.active {
    border-color: #4CAF50;
    background: #e8f5e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Media Options */
.media-option {
    margin: 20px 0;
}

.media-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
}

.media-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.media-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Checkbox Styling */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.checkbox-option:hover {
    background: #f8f9fa;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-option small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-left: 32px;
}

/* Save Section */
.save-section {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#step3-message {
    margin-bottom: 20px;
    min-height: 50px;
}

/* Messages */
.kichallenge-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.kichallenge-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.kichallenge-success {
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.kichallenge-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.kichallenge-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1565c0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/* CALENDAR DASHBOARD FIXED STYLES */
/* ============================================= */

.kichallenge-calendar-dashboard {
    display: flex;
    gap: 30px;
    min-height: 80vh;
    background: transparent;
    border-radius: 12px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.calendar-sidebar {
    flex: 0 0 400px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.calendar-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#challenge-calendar {
    height: 450px !important;
    width: 100% !important;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* FullCalendar Fixed Customization */
.fc {
    font-family: inherit !important;
    font-size: 14px !important;
}

.fc .fc-toolbar {
    padding: 10px 0 !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.fc .fc-toolbar-title {
    font-size: 1.3em !important;
    color: #2c3e50 !important;
    font-weight: 600;
    margin: 0 !important;
}

.fc .fc-button {
    background: #4CAF50 !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 0.9em !important;
    border-radius: 6px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fc .fc-button:hover {
    background: #45a049 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.fc .fc-button:disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fc .fc-day-today {
    background-color: #e8f5e8 !important;
}

.fc .fc-event {
    border: none !important;
    padding: 4px 8px !important;
    font-size: 0.8em !important;
    cursor: pointer;
    border-radius: 4px !important;
    font-weight: 500;
    margin: 1px 0;
}

.fc .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fc .fc-view {
    border-radius: 8px;
    overflow: hidden;
}

.fc .fc-daygrid-day-frame {
    min-height: 80px;
}

.fc .fc-col-header-cell {
    background: #f8f9fa;
    padding: 10px 0;
    font-weight: 600;
    color: #2c3e50;
}

.fc .fc-daygrid-day-number {
    font-weight: 500;
    color: #2c3e50;
}

/* Calendar Event Colors */
.fc-event.health-event {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
}

.fc-event.money-event {
    background: #FF9800 !important;
    border-color: #FF9800 !important;
}

.fc-event.relationships-event {
    background: #E91E63 !important;
    border-color: #E91E63 !important;
}

/* Sidebar Actions */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-btn {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-btn:hover {
    border-color: #4CAF50;
    background: #f8fff8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.sidebar-btn.active {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Quick Stats */
.quick-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.quick-stats h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2em;
}

/* Right Content Area - Fixed */
.challenge-preview-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: #7f8c8d;
    max-width: 400px;
}

.placeholder-icon {
    font-size: 5em;
    margin-bottom: 25px;
    opacity: 0.3;
}

.preview-placeholder h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.preview-placeholder p {
    margin: 8px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Challenge Detail View */
#challenge-detail-view {
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.3s ease-in;
}

.challenge-detail-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.challenge-detail-header h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 2em;
    line-height: 1.3;
}

.challenge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.date-info {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

.recurrence-badge {
    background: #fff3e0;
    color: #f57c00;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

.challenge-description-section {
    margin-bottom: 30px;
}

.challenge-description-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.description-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    line-height: 1.7;
    font-size: 1.05em;
}

/* Challenge Actions */
.challenge-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    text-align: center;
}

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

.btn-edit {
    border-color: #2196F3;
    color: #2196F3;
}

.btn-edit:hover {
    background: #2196F3;
    color: white;
}

.btn-complete {
    border-color: #4CAF50;
    color: #4CAF50;
}

.btn-complete:hover {
    background: #4CAF50;
    color: white;
}

.btn-delete {
    border-color: #f44336;
    color: #f44336;
}

.btn-delete:hover {
    background: #f44336;
    color: white;
}

/* Challenge Stats */
.challenge-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 1.8em;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
}

/* Responsive Design for Calendar Dashboard */
@media (max-width: 1200px) {
    .kichallenge-calendar-dashboard {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .calendar-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
    
    .calendar-container {
        order: -1;
    }
    
    #challenge-calendar {
        height: 400px !important;
    }
    
    .challenge-preview-panel {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .kichallenge-calendar-dashboard {
        padding: 10px;
    }
    
    .calendar-sidebar {
        padding: 20px;
    }
    
    #challenge-calendar {
        height: 350px !important;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.1em !important;
    }
    
    .challenge-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .challenge-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .challenge-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .calendar-sidebar {
        padding: 15px;
    }
    
    #challenge-calendar {
        height: 300px !important;
    }
    
    .fc .fc-button {
        padding: 6px 12px !important;
        font-size: 0.8em !important;
    }
    
    .sidebar-btn {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .quick-stats {
        padding: 15px;
    }
    
    .challenge-preview-panel {
        padding: 20px;
    }
    
    .challenge-detail-header h3 {
        font-size: 1.6em;
    }
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .kichallenge-multi-step-form {
        margin: 10px;
        border-radius: 8px;
    }
    
    .form-step {
        padding: 20px;
    }
    
    .two-box-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-box, .right-box {
        min-height: auto;
    }
    
    .step2-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .kichallenge-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .form-actions {
        text-align: center;
    }
    
    .edit-actions {
        flex-direction: column;
    }
    
    .visibility-options {
        gap: 8px;
    }
    
    .visibility-label {
        padding: 15px;
        font-size: 1em;
    }
    
    .category-options {
        gap: 8px;
    }
    
    .category-btn {
        padding: 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .box-content {
        padding: 20px;
    }
    
    .scheduling-section,
    .visibility-selection,
    .category-section,
    .media-section {
        padding: 20px;
    }
    
    .preview-card {
        padding: 20px;
    }
    
    .goal-display,
    .description-content pre,
    .preview-description pre {
        padding: 15px;
    }
}
/* User Challenges Styles */
.kichallenge-user-challenges {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.user-challenges-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.user-challenges-header h2 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 2.2em;
    font-weight: 700;
}

.user-challenges-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1.2em;
}

/* Empty State */
.kichallenge-empty-state {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px dashed #e0e0e0;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.kichallenge-empty-state h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.8em;
}

.kichallenge-empty-state p {
    margin: 0 0 30px 0;
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Overview */
.challenges-stats-overview {
    margin-bottom: 40px;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #4CAF50;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5em;
    opacity: 0.8;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 500;
}

/* Filter Bar */
.challenges-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.filter-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.challenge-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.challenge-card.completed {
    border-color: #4CAF50;
    opacity: 0.9;
}

.challenge-card.active {
    border-color: #FF9800;
}

.challenge-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.challenge-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
}

.challenge-status-badge .status-icon {
    font-size: 1.1em;
}

.challenge-type-badge {
    font-size: 1.2em;
}

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

.challenge-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.challenge-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.challenge-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.meta-icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.challenge-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.action-btn {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.btn-view {
    border-color: #2196F3;
    color: #2196F3;
}

.btn-view:hover {
    background: #2196F3;
    color: white;
}

.btn-complete {
    border-color: #4CAF50;
    color: #4CAF50;
}

.btn-complete:hover {
    background: #4CAF50;
    color: white;
}

.btn-edit {
    border-color: #FF9800;
    color: #FF9800;
}

.btn-edit:hover {
    background: #FF9800;
    color: white;
}

.btn-delete {
    border-color: #f44336;
    color: #f44336;
}

.btn-delete:hover {
    background: #f44336;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kichallenge-user-challenges {
        padding: 15px;
    }
    
    .user-challenges-header h2 {
        font-size: 1.8em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .challenges-filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .challenge-card-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .kichallenge-empty-state {
        padding: 40px 20px;
    }
    
    .empty-state-icon {
        font-size: 3em;
    }
}



.ico-2 {
  background-color: #39706F;
  color: white !important;
  padding: 18px !important;
  border-radius: 50% !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 1px rgba(12,40,38,.06),
    0 2px 6px rgba(12,40,38,.05) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 20px !important;
  display: none;
}

.fa-calendar{ font-size: 30px; }

.wrap{
  width: min(1200px, 94vw);
  margin-inline: auto;
  padding: clamp(22px, 3.5vw, 40px) 0 80px;
}

/* ------------------ Top Heading ------------------ */
.hero-pill{
  margin: 10px auto clamp(22px, 3.2vw, 44px);
  width: max-content;
  max-width: 100%;
  padding: 18px clamp(20px, 3.6vw, 38px);
  border-radius: 999px;
  background-color: #78AFAC;
  box-shadow: var(--shadow-20);
  color:white;
  text-align:center;
  font-weight: normal !important; /* keep same visual intent, fix syntax */
  font-family: "Montserrat", "Inter", sans-serif;
  letter-spacing:.6px;
  font-size: var(--h1);
  line-height:1.15;
}

/* ------------------ Layout ------------------ */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* equal width columns */
  gap: var(--gap);
  align-items: stretch; /* also gives equal height */
}
@media (max-width: 980px){ .grid{ grid-template-columns: 1fr; } }

.challenge { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ------------------ LEFT: How does it work ------------------ */
.card-how{
  position: relative;
  border: 4px solid #77afac;
  border-radius: 22px;
  padding: clamp(18px, 2vw, 24px);
  padding-top: clamp(48px, 7vw, 64px);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  display:flex; flex-direction:column; height:100%;
}
.card-how .floating-pill{
  position:absolute; left: 50%; translate: -50% -50%; top: 0;
  background-color: #78AFAC; color:white; border-radius: 999px;
  padding: 12px clamp(18px, 3.1vw, 30px);
  box-shadow: var(--shadow-20);
  font-weight: normal !important;
  white-space: nowrap;
}

.card-how p{ font-size: var(--p); line-height: 1.65; margin: 0 0 14px; color: var(--ink-light); }

.note{
  background: #539c98; border-radius: 8px; padding: 12px 14px; margin: 12px 0 16px;
  color: #e9fffd; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.bullets{ margin: 10px 0 18px 0; padding-left: 20px; list-style: none; color: var(--ink-light); }
.bullets li{ position: relative; padding-left: 18px; margin: 8px 0; font-size: var(--p); line-height:1.55; }
.bullets li::before{
  content:""; position:absolute; left:0; top: .65em; width:8px; height:8px; border-radius:50%;
  background:#f1fffe; box-shadow: 0 0 0 2px rgba(255,255,255,.25); transform: translateY(-50%);
}

.callout{ display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 14px 0; color: var(--ink-light); }
.callout .emoji{ filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.mini{ margin-top: 18px; padding: 12px 14px; background: rgba(255,255,255,.06); border-radius: 8px; color: var(--ink-light); }

/* ------------------ RIGHT: Phone card ------------------ */
.phone{
  position: relative; z-index: 0; /* for ::before shadow */
  border-radius: 26px; background: var(--phone-shell); color: var(--ink-dark);
  padding: clamp(14px, 1.2vw, 18px);
  box-shadow: 0 18px 50px rgba(12,40,38,.30), 0 6px 16px rgba(12,40,38,.18);
  display:flex; flex-direction:column; height:100%;
  box-shadow: 10px 10px 0 #2A4C45; 
  max-width: 100%;
}
.phone::before{
  content:""; position:absolute; inset: 0; border-radius: 26px;
  box-shadow: 0 22px 60px rgba(12,40,38,.35), 10px 0 18px rgba(12,40,38,.25);
  z-index:-1; /* sits behind the shell */
}

.panel{
  background: white; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden; display:flex; flex-direction:column; height:100%;
}
.panel-head{
  padding: 16px 18px; border-bottom: 1px solid #dcebea; text-align:center;
  font: 800 var(--h3)/1.25 "Montserrat","Inter",sans-serif; letter-spacing:.3px;
}

/* ---------- ONE STYLE for all right-box buttons/pills ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill-wrap { display: inline-flex; align-items: center; gap: 6px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pill-wrap { display: flex; align-items: center; position: relative; }

/* Force icon outside button (on left side) */
.icon-left i { margin-right: 8px; position: relative; left: -10px; font-size: 15px; color: #2b6d69; }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Flex wrapper: keeps icon and pill on same line */
.pill-flex { display: flex; align-items: center; gap: 8px; }

/* Regular icon (outside, no bg) */
.pill-flex i { font-size: 15px; color: #2b6d69; flex-shrink: 0; }

/* Icon with background (second one only) */
.pill-flex .icon-bg {
  background-color: #78AFAC; padding: 6px; border-radius: 50%;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 1px rgba(12,40,38,.06), 0 2px 6px rgba(12,40,38,.05);
}

/* Default pill */
.soft-pill { --h: 36px; height: var(--h); display: inline-flex; align-items: center; padding: 0 14px; background-color: #78AFAC; border: 1px solid #d6e7e6; border-radius: 999px; font-weight: 700; color: white; font-size: var(--small); letter-spacing: .1px; white-space: nowrap; margin-left: 10px; }
.soft-pill2 { --h: 36px; height: var(--h); display: inline-flex; align-items: center; padding: 0 14px; font-weight: 700; color: #2b6d69; font-size: var(--small); letter-spacing: .1px; white-space: nowrap; }

/* Remove background for the second pill */
.soft-pill.no-bg { background: transparent !important; border: none !important; box-shadow: none !important; }

/* Badge style (3rd one) */
.soft-pill.is-badge.is-upper { text-transform: uppercase; }

/* Icon with circular background (second one only) */
.with-bg { background-color: #78AFAC; color: #2b6d69; padding: 6px; border-radius: 50%; box-shadow: inset 0 1px 0 #ffffff, 0 1px 1px rgba(12,40,38,.06), 0 2px 6px rgba(12,40,38,.05); }

.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill-wrapper { display: inline-flex; align-items: center; gap: 6px; }

/* Icon styling (outside the pill) */
.ico { display: flex; align-items: center; justify-content: center; color: #2b6d69; font-size: 16px; }

.soft-pill.is-upper{ text-transform: uppercase; font-weight:800; }
.soft-pill.is-badge{ padding:0 16px; }

.soft-pill .ico{ width:22px; height:22px; flex:0 0 22px; display:grid; place-items:center; border-radius:50%; background: radial-gradient(circle at 30% 30%, #ffffff, #e8f2f1); border: 1px solid #cfe1e0; margin-right: 10px; }
/* updated to style <i> instead of <svg> */
.soft-pill .ico i{ font-size:13px; line-height:1; color:#2c6d69; }

.meta{
  display:flex; gap:12px; align-items:center; padding: 12px 16px 0; flex-wrap: wrap; justify-content: space-between;
}

.panel-body{ padding: 8px 16px 14px; flex:1 1 auto; background-color: #CADDDB; margin-top: 20px; }

.section-title{ font-weight: 800; font-size: var(--h3); text-transform: uppercase; letter-spacing: .6px; margin: 8px 0 8px; color:#2b6d69; text-align: center; }

.plan{ background: #CADDDB; padding: 12px 14px; }
.plan ul{ margin:0; padding-left:18px; }
.plan li{ margin:8px 0; color:#294846; font-size:var(--p); line-height:1.55; }

.phrase{ margin-top:14px; font-size:var(--p); color:#2a4a47; }
.subbullets{ margin:8px 0 0 0; padding-left:18px; }
.subbullets li{ margin:7px 0; color:#335755; font-size:var(--p); }

.choose{ padding: 10px 16px 16px; text-align:center; border-top: 1px dashed #cfe1e0; margin-top: 10px; }
.choose .label{ font-weight: 800; font-size: var(--h3); color:#2b6d69; margin-bottom: 10px; }

.pill-set{ display:flex; gap: 10px; justify-content:space-between; flex-wrap: wrap; }

/* ---------- Bottom CTA buttons ---------- */
.cta-bar{ display:flex; gap:28px; justify-content:center; align-items:center; padding: 12px 10px 16px; flex-wrap: wrap; }
.cta{ display:grid; justify-items:center; gap:6px; font-size: var(--small); color:#294846; }
.cta .btn{ width:52px; height:52px; display:grid; place-items:center; border-radius: 12px; background: linear-gradient(#f9fefe,#edf6f5); border:1px solid #d7e8e7; box-shadow: 0 8px 18px rgba(12,40,38,.10), inset 0 1px 0 #ffffff; }
/* updated to style <i> instead of <svg> */
.cta i{ font-size:26px; line-height:1; color:#2f6e6a; }

.sr-only{ position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ========================= */
/*      RESPONSIVE TWEAKS    */
/* ========================= */
@media (max-width: 768px){
  .wrap{ padding-bottom: 56px; }
  .grid{ gap: 16px; }
  .hero-pill{ width: 100%; border-radius: 16px; padding: 14px 16px; }
  .card-how{ padding: 18px 14px; }
  .card-how .floating-pill{ padding: 10px 16px; font-size: clamp(14px, 2.2vw, 16px); }
  .phone{ border-radius: 20px; padding: 12px; }
  .panel{ border-radius: 12px; }
  .panel-head{ padding: 14px; }
  .meta{ gap: 10px; justify-content: flex-start; }
  .meta > *{ min-width: 0; }
  .soft-pill, .soft-pill2{ padding: 0 12px; }
  .pill-set{ gap: 8px; justify-content: center; }
  .cta .btn{ width:48px; height:48px; }
}

@media (max-width: 520px){
  .panel-body{ margin-top: 12px; padding: 10px 12px 12px; }
  .plan{ padding: 10px 12px; }
  .pill-set{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .soft-pill.is-badge{ padding: 0 12px; }
  .cta-bar{ gap: 16px; }
}

@media (max-width: 400px){
  .hero-pill{ letter-spacing: .3px; }
  .soft-pill, .soft-pill2{ height: 32px; padding: 0 10px; }
  .soft-pill .ico{ margin-right: 6px; width:20px; height:20px; }
  .cta .btn{ width:44px; height:44px; border-radius: 10px; }
  .cta i{ font-size:22px; }
}
/* Step 2 Layout */
.step2-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.step2-left {
    flex: 4;
}

.step2-right {
    flex: 6;
    background: #4CAF50;
    border-radius: 12px;
    padding: 20px;
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.today-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
}

.today-label {
    font-size: 14px;
    opacity: 0.9;
}

.today-date {
    font-size: 32px;
    font-weight: bold;
    margin: 5px 0;
}

.today-year {
    font-size: 16px;
    opacity: 0.9;
}

/* Step 2 Calendar Styling */
#step2-calendar .fc-header-toolbar {
    margin-bottom: 10px;
}

#step2-calendar .fc-day {
    border: 2px solid transparent;
    padding: 2px;
}

#step2-calendar .fc-day:hover {
    background-color: #E8F5E8;
}

#step2-calendar .fc-day-today {
    background-color: #4CAF50 !important;
    color: white;
}

#step2-calendar .fc-day-selected {
    border-color: #4CAF50;
    background-color: #E8F5E8;
}

.calendar-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.calendar-btn {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-btn.active,
.calendar-btn:hover {
    background: #4CAF50;
    color: white;
}

/* Time Slots Section */
.time-slots-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.time-header h3 {
    margin: 0;
    color: #333;
}

.all-day-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.time-slots {
    max-height: 300px;
    overflow-y: auto;
}

.time-slot {
    padding: 10px 15px;
    border-bottom: 1px solid #4CAF50;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #4CAF50;
    font-weight: 500;
}

.time-slot:hover {
    background-color: #E8F5E8;
}

.time-slot.selected {
    background-color: #4CAF50;
    color: white;
}

/* Challenge Details Popup */
.challenge-details-popup {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.selected-date-display {
    background: #E8F5E8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
}

.visibility-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.visibility-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visibility-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visibility-option:hover {
    border-color: #4CAF50;
}

.visibility-option.selected {
    border-color: #4CAF50;
    background-color: #E8F5E8;
}

.visibility-icon {
    font-size: 24px;
}

.visibility-text {
    font-weight: bold;
    color: #333;
}

.visibility-desc {
    color: #666;
    font-size: 14px;
}

.time-selector {
    margin: 15px 0;
}

.time-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.time-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background: white;
}

.popup-actions {
    margin-top: 20px;
}

/* Step 3 Layout */
.step3-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.step3-left {
    flex: 4;
}

.step3-right {
    flex: 6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step2-layout,
    .step3-layout {
        flex-direction: column;
    }
    
    .step2-left,
    .step2-right,
    .step3-left,
    .step3-right {
        flex: 1;
    }
}
/* Step 2 Layout with Overlay */
.kichallenge-step2-layout .grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.kichallenge-step2-layout .card-how {
    flex: 4;
}

.kichallenge-step2-layout .phone {
    flex: 6;
    position: relative;
}

/* Time Slots Background */
.time-slots-background {
    background: #4CAF50;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    min-height: 1000px;
}

.time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: white;
}

.time-header h3 {
    margin: 0;
    color: white;
}

.all-day-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
}

.time-slots {
    max-height: 400px;
    overflow-y: auto;
}

.time-slot {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
    font-weight: 500;
}

.time-slot:hover {
    background-color: rgba(255,255,255,0.1);
}

.time-slot.selected {
    background-color: rgba(255,255,255,0.2);
}

/* Challenge Details Overlay */
.challenge-details-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.selected-date-display {
    background: #E8F5E8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: #4CAF50;
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.today-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
}

.today-label {
    font-size: 14px;
    opacity: 0.9;
}

.today-date {
    font-size: 32px;
    font-weight: bold;
    margin: 5px 0;
}

.today-year {
    font-size: 16px;
    opacity: 0.9;
}

.calendar-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.calendar-btn {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-btn.active,
.calendar-btn:hover {
    background: #4CAF50;
    color: white;
}

/* Step 3 Layout */
.kichallenge-step3-layout .grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.kichallenge-step3-layout .card-how {
    flex: 4;
}

.kichallenge-step3-layout .phone {
    flex: 6;
}
div#step-1 {
    background: #74adab;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kichallenge-multi-step-form {
    background: #539b96 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 3px solid white !important;
}

.kichallenge-step2-layout section.card-how {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.kichallenge-step2-layout .hero-pill {
    padding: 0 !important;
    margin: 0 !important;
}

.kichallenge-step2-layout section.card-how .calendar-section {
    border-radius: 0 !important;
    background: #74adab !important;
    box-shadow: none !important;
}
/* Calendar Dashboard Layout */
.kichallenge-calendar-dashboard .grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.kichallenge-calendar-dashboard .card-how {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.kichallenge-calendar-dashboard .calendar-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kichallenge-calendar-dashboard .today-section {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.kichallenge-calendar-dashboard .today-label {
    font-size: 14px;
    opacity: 0.9;
}

.kichallenge-calendar-dashboard .today-date {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.kichallenge-calendar-dashboard .today-year {
    font-size: 14px;
    opacity: 0.9;
}

.kichallenge-calendar-dashboard .calendar-buttons {
    margin-top: 15px;
}

.kichallenge-calendar-dashboard .calendar-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kichallenge-calendar-dashboard .calendar-btn.active,
.kichallenge-calendar-dashboard .calendar-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Time Slots */
.kichallenge-calendar-dashboard .time-slots-background {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.kichallenge-calendar-dashboard .time-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

.kichallenge-calendar-dashboard .time-slot {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kichallenge-calendar-dashboard .time-slot:hover {
    background: #e9ecef;
}

.kichallenge-calendar-dashboard .time-slot.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Challenge Details Overlay */
.kichallenge-calendar-dashboard .challenge-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Stats Grid */
.kichallenge-calendar-dashboard .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.kichallenge-calendar-dashboard .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.kichallenge-calendar-dashboard .stat-label {
    font-weight: 500;
    color: #495057;
}

.kichallenge-calendar-dashboard .stat-value {
    font-weight: bold;
    color: #007bff;
    font-size: 18px;
}
