/* Frontend Form Styles */
.cube-registration-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.cube-form-container {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.form-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007cba;
    outline: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s;
}

.radio-label:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #007cba;
    background: #007cba;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.event-checkbox {
    display: none;
}

.event-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.event-label:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-checkbox:checked + .event-label {
    border-color: #007cba;
    background: #f0f8ff;
    color: #007cba;
}

.event-price {
    font-weight: bold;
    color: #28a745;
}

.event-checkbox:checked + .event-label .event-price {
    color: #007cba;
}

.payment-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.calculation-row:last-child {
    border-bottom: none;
}

.total-row {
    font-size: 1.2em;
    color: #007cba;
    border-top: 2px solid #007cba;
    margin-top: 10px;
    padding-top: 15px;
}

.discount-row {
    color: #28a745;
}

.coupon-row {
    color: #17a2b8;
}

.coupon-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.coupon-input-group input {
    flex: 1;
    margin-bottom: 0;
}

.apply-coupon-btn {
    padding: 10px 20px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    white-space: nowrap;
}

.apply-coupon-btn:hover {
    background: #138496;
}

.apply-coupon-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.coupon-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #005a87;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.registration-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
    animation: slideDown 0.5s ease-out;
}

.registration-success h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #155724;
}

.registration-success p {
    margin-bottom: 10px;
}

.registration-success p:last-child {
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment Image Styles */
.payment-info-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.payment-image-container {
    margin: 20px 0;
}

.payment-qr-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 2px solid #007cba;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.image-click-hint {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Image Popup Modal Styles */
.image-popup-modal {
    z-index: 10001;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-body {
    text-align: center;
    padding: 10px;
}

.popup-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Payment Instructions Styles */
.payment-instructions {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #007cba;
}

.instruction-item {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #d1ecf1;
}

.instruction-item:last-child {
    margin-bottom: 0;
}

.instruction-item strong {
    color: #007cba;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.instruction-item p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* Terms and Conditions Styles */
.terms-container {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #ffc107;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.6;
}

.terms-checkbox-label input[type="checkbox"] {
    display: none;
}

.terms-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.terms-checkbox-label input[type="checkbox"]:checked + .terms-checkbox-custom {
    border-color: #007cba;
    background: #007cba;
}

.terms-checkbox-label input[type="checkbox"]:checked + .terms-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-text {
    color: #333;
    font-size: 14px;
    text-align: justify;
}

.early-bird-banner {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.mandatory-event {
    background: #fff3cd !important;
    border-color: #ffc107 !important;
}

.mandatory-event .event-price {
    color: #856404;
}

/* Admin Dashboard Styles */
.cube-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cube-stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.cube-stat-card .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
    margin-bottom: 8px;
}

.cube-stat-card .stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.cube-filters-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.filter-group input,
.filter-group select {
    min-width: 150px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 200px;
}

.event-badge {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid #dee2e6;
}

.discount-text {
    color: #28a745;
    font-style: italic;
}

.coupon-text {
    color: #17a2b8;
    font-style: italic;
}

.coupon-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.no-coupon {
    color: #6c757d;
    font-style: italic;
}

.row-actions {
    font-size: 12px;
}

.row-actions a {
    text-decoration: none;
}

.row-actions a.delete {
    color: #a00;
}

.row-actions a.delete:hover {
    color: #dc3232;
}

/* Modal Styles */
.cube-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cube-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cube-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cube-modal-header h2 {
    margin: 0;
    flex: 1;
}

.cube-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.cube-modal-close:hover {
    color: #000;
}

.cube-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cube-registration-form {
        padding: 10px;
    }
    
    .cube-form-container {
        padding: 15px;
    }
    
    .events-container {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .cube-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .cube-stats-container {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        min-width: auto;
        width: 100%;
    }
}