/* HIT Events - Public Styles */
@media (max-width: 768px) {
    .hit-events-grid { grid-template-columns: 1fr; }
    .event-stats { grid-template-columns: 1fr; }
    .registration-actions { flex-direction: column; }
    .registration-actions .button { width: 100%; }
}


.event-description {
    margin: 15px 0;
    color: #666;
}

.event-details {
    margin-top: 20px;
}

.event-details p {
    margin: 10px 0;
}

.hit-current-phase {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
}

.phase-label {
    font-weight: 600;
    color: #2271b1;
}

.hit-form-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* SurveyJS customizations */
#surveyContainer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Overview Page */
.hit-overview-wrapper {
    padding: 20px;
}

.hit-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.hit-event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hit-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.event-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.event-card-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.event-phase-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-card-body {
    padding: 20px;
}

.event-date {
    color: #666;
    margin-bottom: 15px;
}

.event-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.stat-item.highlight {
    background: #e7f3ff;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.event-progress {
    margin: 20px 0;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    transition: width 0.3s;
}

.progress-label {
    font-size: 12px;
    color: #666;
}

.event-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.event-card-footer .button {
    width: 100%;
    text-align: center;
}

.event-graph-container {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* User Registrations */
.hit-user-registrations-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.registration-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.registration-header {
    background: #f5f5f5;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.registration-header h3 {
    margin: 0 0 5px 0;
}

.registration-date {
    font-size: 13px;
    color: #666;
}

.registration-details {
    padding: 20px;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    min-width: 150px;
    color: #333;
}

.payment-status {
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.payment-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status.status-paid {
    background: #d4edda;
    color: #155724;
}

.payment-status.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-selected {
    color: #28a745;
    font-weight: 600;
}

.payment-deadline {
    background: #fff3cd;
    padding: 15px !important;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ffc107 !important;
}

.registration-actions {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

/* Countdown Timer */
.hit-countdown {
    text-align: center;
    padding: 30px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

/* DRAFT FUNCTIONALITY STYLES */

/* Draft indicator at top of form */
.hit-draft-indicator {
    padding: 15px 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hit-draft-indicator .dashicons {
    color: #856404;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.hit-autosave-indicator {
    padding: 8px 15px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    color: #155724;
}

.hit-skip-validation-notice {
    padding: 15px 20px;
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #0c5460;
}

/* Draft save button */
#hit-save-draft-btn {
    margin-right: 10px;
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

#hit-save-draft-btn:hover {
    background: #5a6268;
}

#hit-save-draft-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Drafts list page */
.hit-drafts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hit-drafts-header {
    margin-bottom: 30px;
}

.hit-drafts-header h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.hit-drafts-description {
    color: #666;
    font-size: 16px;
}

.hit-drafts-list {
    display: grid;
    gap: 20px;
}

.hit-draft-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hit-draft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hit-draft-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.hit-draft-info h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 20px;
}

.hit-draft-location {
    margin: 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hit-draft-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.hit-draft-meta {
    text-align: right;
}

.hit-draft-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hit-draft-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.hit-draft-body {
    padding: 20px;
}

.hit-draft-progress {
    margin-bottom: 15px;
}

.hit-progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.hit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.hit-progress-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.hit-draft-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.hit-status-shared {
    background: #d4edda;
    color: #155724;
}

.hit-status-private {
    background: #f8d7da;
    color: #721c24;
}

.hit-draft-status .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.hit-draft-notes {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

.hit-draft-notes strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.hit-draft-notes p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.hit-draft-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hit-btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.hit-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hit-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    color: white;
}

.hit-btn-secondary {
    background: #6c757d;
    color: white;
}

.hit-btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.hit-btn-danger {
    background: #dc3545;
    color: white;
}

.hit-btn-danger:hover {
    background: #c82333;
    color: white;
}

.hit-drafts-help {
    margin-top: 40px;
    padding: 20px;
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.hit-drafts-help h3 {
    margin-top: 0;
    color: #1976d2;
}

.hit-drafts-help ul {
    margin: 15px 0 0 20px;
    color: #0d47a1;
}

.hit-drafts-help li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.hit-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hit-notice-info {
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    color: #0d47a1;
}

.hit-notice-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.hit-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.hit-notice-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.hit-login-required {
    text-align: center;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hit-events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-stats {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 28px;
    }
    
    .registration-actions {
        flex-direction: column;
    }
    
    .registration-actions .button {
        width: 100%;
    }
    
    .hit-draft-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .hit-draft-meta {
        text-align: left;
    }
    
    .hit-draft-actions {
        flex-direction: column;
    }
    
    .hit-btn {
        width: 100%;
        justify-content: center;
    }
}
