/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #0f2d5a 0%, #1e3c72 50%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 3rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
}

.form-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Overall Progress Steps */
.overall-progress {
    margin-top: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 80px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #ffd700;
    color: #1e3c72;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    text-align: center;
    max-width: 80px;
}

/* Form Styles */
.registration-form {
    padding: 2rem;
}

/* Section Container Styles */
.form-section-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Header */
.section-header {
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: #ffd700;
}

/* Section Progress */
.section-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#4a90e2 0deg, #4a90e2 0deg, #e1e5e9 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
}

.progress-number {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4a90e2;
}

/* Progress Animation */
.progress-animate {
    animation: progressPulse 0.3s ease-out;
}

@keyframes progressPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Section Navigation */
.section-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.btn-prev, .btn-next {
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prev:hover, .btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(42, 82, 152, 0.3);
}

.btn-prev {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-prev:hover {
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

/* Form Section (Legacy - keeping for compatibility) */
.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #4a90e2;
}

.form-section h3 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #4a90e2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Terms Container */
.terms-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
}

.term-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.term-item:last-child {
    margin-bottom: 0;
}

.term-item input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    transform: scale(1.2);
}

.term-item label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 30px rgba(42, 82, 152, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(42, 82, 152, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.btn-close {
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(42, 82, 152, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        margin: 0 1rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    /* Section responsive */
    .section-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
    }
    
    .section-navigation {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-prev, .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    .progress-circle {
        width: 50px;
        height: 50px;
    }
    
    .progress-circle::before {
        width: 40px;
        height: 40px;
    }
    
    .progress-number {
        font-size: 0.8rem;
    }
    
    /* Progress steps tablet */
    .progress-steps {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .step {
        min-width: 70px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.75rem;
        max-width: 70px;
    }
    
    /* Participants table mobile */
    .participants-table {
        font-size: 0.8rem;
    }
    
    .participants-table th,
    .participants-table td {
        padding: 0.5rem 0.3rem;
    }
    
    .participant-input-section h4,
    .participants-table-section h4 {
        font-size: 1rem;
    }
    
    .btn-add {
        width: 100%;
        margin-top: 1rem;
    }
    
    .file-input-display {
        padding: 0.5rem 0.75rem;
        min-height: 44px;
    }
    
    .file-input-display i {
        font-size: 1rem;
    }
    
    .file-input-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .registration-form {
        padding: 1rem;
    }
    
    .form-section {
        padding: 0.8rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
    }
    
    input, select, textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .terms-container {
        padding: 1rem;
    }
    
    .term-item label {
        font-size: 0.85rem;
    }
    
    /* Section mobile responsive */
    .section-header {
        padding: 0.70rem;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
    }
    
    .section-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .section-navigation {
        padding: 1rem;
    }
    
    .progress-circle {
        width: 45px;
        height: 45px;
    }
    
    .progress-circle::before {
        width: 35px;
        height: 35px;
    }
    
    .progress-number {
        font-size: 0.7rem;
    }
    
    /* Progress steps mobile */
    .progress-steps {
        gap: 0.5rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
        max-width: 60px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File Input Styles */
.file-input-container {
    position: relative;
    width: 100%;
}

.file-input-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-input-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px dashed #4a90e2;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(74, 144, 226, 0.1) 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 48px;
}

.file-input-display:hover {
    border-color: #2a5298;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.15) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.file-input-display i {
    color: #4a90e2;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.file-input-display:hover i {
    color: #2a5298;
    transform: scale(1.1);
}

.file-input-text {
    color: #4a90e2;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.file-input-display:hover .file-input-text {
    color: #2a5298;
}

.file-input-container.has-file .file-input-display {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
}

.file-input-container.has-file .file-input-display i {
    color: #28a745;
}

.file-input-container.has-file .file-input-text {
    color: #28a745;
}

.file-input-container.has-file .file-input-display:hover {
    border-color: #1e7e34;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.15) 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.file-input-container.has-file .file-input-display:hover i {
    color: #1e7e34;
}

.file-input-container.has-file .file-input-display:hover .file-input-text {
    color: #1e7e34;
}

/* File Status Styles */
.file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-status.uploaded {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.file-status.uploaded i {
    color: #28a745;
    font-size: 0.9rem;
}

.file-status.missing {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.file-status.missing i {
    color: #dc3545;
    font-size: 0.9rem;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.error label {
    color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Success Animation */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a7bc8;
}

/* Form Progress Styles */
.form-progress {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid #e1e5e9;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: #4a90e2;
    font-size: 0.9rem;
}

/* Notification Styles */
.notification {
    font-family: 'Poppins', sans-serif;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Focused state for form groups */
.form-group.focused label {
    color: #4a90e2;
    font-weight: 600;
}

/* Additional animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeInUp 0.6s ease-out;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

/* Hover effects for form sections */
.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Enhanced button styles */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading state for inputs */
.form-group.loading {
    position: relative;
}

.form-group.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 16px;
    height: 16px;
    border: 2px solid #4a90e2;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

/* Participant Input Section */
.participant-input-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.participant-input-section h4 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participant-input-section h4 i {
    color: #4a90e2;
}

.add-participant-btn {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-add {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.btn-add:active {
    transform: translateY(0);
}

/* Participants Table Section */
.participants-table-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.participants-table-section h4 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.participants-table-section h4 i {
    color: #4a90e2;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.participants-table th {
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    color: white;
    padding: 1rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.participants-table th:first-child {
    border-top-left-radius: 10px;
}

.participants-table th:last-child {
    border-top-right-radius: 10px;
}

.participants-table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.participants-table tbody tr {
    transition: background-color 0.2s ease;
}

.participants-table tbody tr:hover {
    background-color: #f8f9fa;
}

.participants-table tbody tr:last-child td {
    border-bottom: none;
}

/* Action buttons in table */
.btn-edit, .btn-delete {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin: 0 0.2rem;
}

.btn-edit {
    color: #ffc107;
}

.btn-edit:hover {
    background-color: #fff3cd;
    color: #856404;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.table-info {
    margin-top: 1rem;
    text-align: right;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Empty table state */
.empty-table {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-table i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-table p {
    margin: 0;
    font-size: 1rem;
}

/* Delete Confirmation Modal Styles */
.delete-modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: backdropFadeIn 0.3s ease-out;
}

@keyframes backdropFadeIn {
    0% {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    100% {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
    }
}

.delete-modal-content {
    max-width: 500px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-20px);
    opacity: 0;
    animation: deleteModalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
    margin: 2rem auto;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
}

.delete-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes deleteModalSlideIn {
    0% {
        transform: translateY(-50%) scale(0.7);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes deleteModalSlideOut {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(0.7);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    @keyframes deleteModalSlideIn {
        0% {
            transform: translateY(-40%) scale(0.9);
            opacity: 0;
        }
        100% {
            transform: translateY(-40%) scale(1);
            opacity: 1;
        }
    }
    
    @keyframes deleteModalSlideOut {
        0% {
            transform: translateY(-40%) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateY(-40%) scale(0.9);
            opacity: 0;
        }
    }
}

@media (max-width: 480px) {
    @keyframes deleteModalSlideIn {
        0% {
            transform: translateY(-30%) scale(0.95);
            opacity: 0;
        }
        100% {
            transform: translateY(-30%) scale(1);
            opacity: 1;
        }
    }
    
    @keyframes deleteModalSlideOut {
        0% {
            transform: translateY(-30%) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateY(-30%) scale(0.95);
            opacity: 0;
        }
    }
}

.delete-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
    animation: headerSlideIn 0.6s ease-out;
}

@keyframes headerSlideIn {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.delete-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.delete-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    animation: pulseWarning 2s infinite, iconContainerSlideIn 0.8s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes iconContainerSlideIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes pulseWarning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.delete-icon-container i {
    font-size: 2.5rem;
    color: white;
    animation: shake 0.5s ease-in-out;
    transition: transform 0.3s ease;
}

.delete-icon-container:hover i {
    transform: scale(1.1);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.delete-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleSlideIn 0.8s ease-out;
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes titleSlideIn {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.delete-body {
    padding: 2rem;
    text-align: center;
    animation: bodySlideIn 0.8s ease-out;
    animation-delay: 0.3s;
    opacity: 1;
    animation-fill-mode: forwards;
    overflow-y: auto;
    max-height: 60vh;
}

@media (max-width: 768px) {
    .delete-body {
        max-height: 45vh;
    }
}

.delete-body p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
    animation: textSlideIn 0.8s ease-out;
    animation-delay: 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes textSlideIn {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.participant-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: participantInfoSlideIn 0.8s ease-out;
    animation-delay: 0.7s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes participantInfoSlideIn {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.participant-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: slideIn 1.5s ease-in-out;
}

@keyframes slideIn {
    0% { left: -100%; }
    100% { left: 100%; }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    opacity: 0;
    animation-fill-mode: forwards;
}

.info-item:hover {
    background: rgba(74, 144, 226, 0.05);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.info-item:nth-child(1) { 
    animation-delay: 0.8s; 
    animation-duration: 0.8s;
}
.info-item:nth-child(2) { 
    animation-delay: 1s; 
    animation-duration: 0.8s;
}
.info-item:nth-child(3) { 
    animation-delay: 1.2s; 
    animation-duration: 0.8s;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    width: 20px;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.info-item:hover i {
    color: #4a90e2;
    transform: scale(1.1);
}

.info-item span {
    font-weight: 500;
    color: #495057;
    flex: 1;
    text-align: left;
    transition: color 0.3s ease;
}

.info-item:hover span {
    color: #2a5298;
}

.warning-text {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0 0 0;
    color: #856404;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    animation: warningPulse 2s ease-in-out infinite, warningTextSlideIn 0.8s ease-out;
    animation-delay: 1s, 0.9s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes warningTextSlideIn {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.warning-text::before {
    content: '⚠️';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.warning-text {
    padding-left: 3rem;
}

.delete-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    animation: footerSlideIn 0.8s ease-out;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes footerSlideIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-cancel, .btn-confirm-delete {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: buttonSlideIn 0.6s ease-out;
    animation-delay: 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes buttonSlideIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-confirm-delete {
    animation-delay: 1s;
}

.btn-cancel::before, .btn-confirm-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cancel:hover::before, .btn-confirm-delete:hover::before {
    left: 100%;
}

.btn-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-confirm-delete:hover i {
    animation: shake 0.5s ease-in-out;
}

.btn-cancel i, .btn-confirm-delete i {
    transition: transform 0.3s ease;
}

.btn-cancel:hover i {
    transform: scale(1.1);
}

.btn-confirm-delete:hover i {
    transform: scale(1.1);
}

.btn-cancel:active, .btn-confirm-delete:active {
    transform: translateY(0);
}

.btn-confirm-delete:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-confirm-delete:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-confirm-delete:disabled i {
    animation: spin 1s linear infinite;
}

/* Responsive styles for delete modal */
@media (max-width: 768px) {
    .delete-modal-content {
        max-width: 90%;
        margin: 1rem;
        transform: translateY(-40%) scale(0.9);
    }
    
    .delete-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .delete-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .delete-icon-container i {
        font-size: 2rem;
    }
    
    .delete-header h3 {
        font-size: 1.3rem;
    }
    
    .delete-body {
        padding: 1.5rem;
        max-height: 50vh;
    }
    
    .delete-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .btn-cancel, .btn-confirm-delete {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .delete-modal-content {
        max-width: 95%;
        margin: 0.5rem;
        transform: translateY(-30%) scale(0.95);
    }
    
    .delete-header {
        padding: 1rem 0.75rem 0.75rem;
    }
    
    .delete-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .delete-icon-container i {
        font-size: 1.5rem;
    }
    
    .delete-header h3 {
        font-size: 1.1rem;
    }
    
    .delete-body {
        padding: 1rem;
        max-height: 45vh;
    }
    
    .participant-info {
        padding: 1rem;
    }
    
    .info-item {
        padding: 0.5rem 0;
    }
    
    .delete-footer {
        padding: 0.75rem 1rem 1rem;
    }
} 

/* Input with Info Button */
.input-with-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-info input {
    flex: 1;
}

.btn-info {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5298 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-info:active {
    transform: scale(0.95);
}

.btn-info i {
    font-size: 1.2rem;
}

/* Info Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: backdropFadeIn 0.3s ease;
}

.info-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: infoModalSlideIn 0.4s ease;
    overflow: hidden;
}

@keyframes infoModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.info-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.info-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: iconContainerSlideIn 0.6s ease;
}

.info-icon-container i {
    font-size: 1.8rem;
    color: white;
}

.info-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    animation: titleSlideIn 0.6s ease 0.2s both;
}

.info-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.info-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.info-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    animation: detailItemSlideIn 0.4s ease both;
}

.detail-item:nth-child(1) { animation-delay: 0.1s; }
.detail-item:nth-child(2) { animation-delay: 0.2s; }
.detail-item:nth-child(3) { animation-delay: 0.3s; }

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.detail-item i {
    font-size: 1.2rem;
    color: #4a90e2;
    width: 20px;
    text-align: center;
}

.detail-item span {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.info-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    animation: noteSlideIn 0.6s ease 0.4s both;
}

.info-note i {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-note p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

@keyframes detailItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes noteSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Info Modal */
@media (max-width: 768px) {
    .info-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .info-header {
        padding: 1.5rem;
    }
    
    .info-header h3 {
        font-size: 1.3rem;
    }
    
    .info-body {
        padding: 1.5rem;
        max-height: 50vh;
    }
    
    .detail-item {
        padding: 0.8rem;
    }
    
    .detail-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .info-modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .info-header {
        padding: 1rem;
    }
    
    .info-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .info-icon-container i {
        font-size: 1.5rem;
    }
    
    .info-header h3 {
        font-size: 1.2rem;
    }
    
    .info-body {
        padding: 1rem;
        max-height: 45vh;
    }
    
    .info-content p {
        font-size: 1rem;
    }
    
    .detail-item {
        padding: 0.6rem;
        gap: 0.8rem;
    }
    
    .detail-item i {
        font-size: 1rem;
    }
    
    .detail-item span {
        font-size: 0.85rem;
    }
    
    .info-note {
        padding: 0.8rem;
    }
    
    .info-note p {
        font-size: 0.9rem;
    }
} 

/* Responsive Design for Progress Steps */
@media (min-width: 1200px) {
    .progress-steps {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .step {
        min-width: 100px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.9rem;
        max-width: 90px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .progress-steps {
        gap: 1.2rem;
        justify-content: center;
    }
    
    .step {
        min-width: 85px;
    }
}

@media (max-width: 767px) and (min-width: 481px) {
    .progress-steps {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .step {
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .step {
        min-width: 60px;
    }
} 

/* Competition Select Container */
.competition-select-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.competition-select-container select {
    flex: 1;
    min-width: 200px;
}

.btn-terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
    white-space: nowrap;
}

.btn-terms:hover {
    background: linear-gradient(135deg, #357abd, #2d6da3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-terms:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-terms i {
    font-size: 1rem;
}

.btn-terms span {
    font-weight: 500;
}

/* Terms Modal Styles */
.terms-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: backdropFadeIn 0.3s ease;
}

.terms-modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 2rem auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: termsModalSlideIn 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes termsModalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.terms-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.terms-icon-container {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconContainerSlideIn 0.6s ease;
}

@keyframes iconContainerSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.terms-icon-container i {
    font-size: 1.5rem;
    color: white;
}

.terms-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.terms-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    animation: titleSlideIn 0.8s ease;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-container {
    position: relative;
    max-width: 300px;
    animation: searchSlideIn 1s ease;
    margin-left: auto;
}

@keyframes searchSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

.terms-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
}

            .terms-content {
                padding: 2rem;
                line-height: 1.6;
                color: #333;
                text-align: left;
                font-size: 0.9rem;
            }

.terms-content h1 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.terms-content h2 {
    color: #764ba2;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.terms-content h3 {
    color: #555;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
}

.terms-content p {
    margin: 0.75rem 0;
    font-size: 1rem;
}

.terms-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.terms-content li {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.terms-content strong {
    color: #667eea;
    font-weight: 600;
}

.terms-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

.terms-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.btn-close {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-close:active {
    transform: translateY(0);
}

.btn-close i {
    font-size: 1rem;
}

/* Responsive Design for Terms Modal */
@media (max-width: 768px) {
    .competition-select-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .competition-select-container select {
        min-width: auto;
    }
    
    .btn-terms {
        justify-content: center;
    }
    
    .terms-modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
    }
    
    .terms-header {
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    
    .terms-left {
        gap: 0.75rem;
    }
    
    .terms-header h3 {
        font-size: 1.2rem;
    }
    
    .search-container {
        max-width: 250px;
    }
    
    .terms-body {
        max-height: 65vh;
    }
    
    .terms-content {
        padding: 1.5rem;
    }
    
    .terms-content h1 {
        font-size: 1.6rem;
    }
    
    .terms-content h2 {
        font-size: 1.3rem;
    }
    
    .terms-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-modal-content {
        width: 98%;
        margin: 0.5rem auto;
        max-height: 95vh;
    }
    
    .terms-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .terms-left {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .terms-icon-container {
        width: 40px;
        height: 40px;
    }
    
    .terms-icon-container i {
        font-size: 1.2rem;
    }
    
    .terms-header h3 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .search-container {
        max-width: 100%;
        margin-left: 0;
    }
    
    .search-input {
        padding: 0.6rem 0.8rem 0.6rem 2rem;
        font-size: 0.85rem;
    }
    
    .search-icon {
        left: 0.6rem;
        font-size: 0.8rem;
    }
    
    .terms-body {
        max-height: 70vh;
    }
    
    .terms-content {
        padding: 1rem;
    }
    
    .terms-content h1 {
        font-size: 1.4rem;
    }
    
    .terms-content h2 {
        font-size: 1.1rem;
    }
    
    .terms-content h3 {
        font-size: 1rem;
    }
    
    .terms-content p,
    .terms-content li {
        font-size: 0.9rem;
    }
    
    .terms-footer {
        padding: 0.75rem 1rem;
    }
    
    .btn-close {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Search Highlight Styles */
.search-highlight {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
    animation: highlightPulse 0.6s ease;
}

.search-highlight.current-match {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    animation: currentMatchPulse 1s ease infinite;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes currentMatchPulse {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
    }
} 