/* Reset dan base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 30px;
}

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

.header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header h1 i {
    color: #e74c3c;
    margin-right: 15px;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Pesan notifikasi */
.pesan {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.pesan.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pesan.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Form */
.form-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-daftar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label i {
    margin-right: 10px;
    color: #3498db;
    width: 25px;
}

.form-group input {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.btn-submit {
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(52, 152, 219, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Info box */
.info-box {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-box h3 i {
    color: #3498db;
    margin-right: 10px;
}

.info-box ul {
    list-style: none;
    padding-left: 10px;
}

.info-box li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.info-box li i {
    color: #2ecc71;
    margin-right: 10px;
    margin-top: 3px;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
}

.admin-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .btn-submit {
        padding: 15px;
        font-size: 1.1rem;
    }
}
/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        font-size: 12pt;
    }
    
    .container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
    }
    
    .header, .form-container, .info-box, .admin-tools, .search-box, 
    .filter-buttons, .stats-container, .footer, .btn, .btn-action {
        display: none !important;
    }
    
    .peserta-table {
        font-size: 10pt !important;
    }
    
    .peserta-table th, .peserta-table td {
        padding: 5px !important;
    }
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 2px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}
.logo-banner {
            width: 100%;
            margin-bottom: 25px;
            position: relative;
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border: 3px solid #e74c3c;
            padding: 15px;
            overflow: hidden;
            text-align: center;
        }
        
        .logo-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(231, 76, 60, 0.1), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite linear;
        }
        
        .header-logo {
            width: 100%;
            height: auto;
            display: block;
            position: relative;
            z-index: 1;
            border-radius: 10px;
            transition: transform 0.3s ease;
            max-height: 100%;
            object-fit: contain;
            margin: 0 auto;
        }
        
        .header-logo:hover {
            transform: scale(1.02);
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }
        
        /* ==================== DESKTOP STYLES (≥ 1200px) ==================== */
        @media screen and (min-width: 1200px) {
            .container {
                padding: 30px;
                margin: 30px auto;
            }
            
            .logo-banner {
                padding: 25px;
            }
            
            .header-logo {
                max-height: 100%;
            }
            
            .header h1 {
                font-size: 2.8rem;
                margin: 30px 0 15px;
            }
            
            .form-container {
                max-width: 800px;
                margin: 0 auto;
            }
        }
        
        /* ==================== TABLET STYLES (768px - 1199px) ==================== */
        @media screen and (min-width: 768px) and (max-width: 1199px) {
            .container {
                padding: 25px;
                margin: 20px auto;
            }
            
            .logo-banner {
                padding: 20px;
            }
            
            .header-logo {
                max-height: 100%;
            }
            
            .header h1 {
                font-size: 2.2rem;
                margin: 25px 0 12px;
            }
            
            .form-container {
                max-width: 600px;
                margin: 0 auto;
            }
            
            .dropdown-trigger {
                font-size: 1rem;
                padding: 16px;
            }
            
            .confirm-modal-content {
                max-width: 100%;
            }
        }
        
        /* ==================== MOBILE STYLES (576px - 767px) ==================== */
        @media screen and (min-width: 576px) and (max-width: 767px) {
            .container {
                padding: 20px;
                margin: 15px auto;
                border-radius: 15px;
            }
            
            .logo-banner {
                padding: 15px;
                border-width: 2px;
            }
            
            .header-logo {
                max-height: 100%;
            }
            
            .header h1 {
                font-size: 1.8rem;
                margin: 20px 0 10px;
            }
            
            .form-group label {
                font-size: 0.95rem;
            }
            
            .form-group input {
                padding: 14px;
                font-size: 1rem;
            }
            
            .btn-submit {
                padding: 16px;
                font-size: 1.1rem;
            }
        }
        
        /* ==================== SMALL MOBILE STYLES (≤ 575px) ==================== */
        @media screen and (max-width: 575px) {
            body {
                padding: 5px;
            }
            
            .container {
                padding: 15px;
                margin: 10px auto;
                border-radius: 15px;
            }
            
            .logo-banner {
                padding: 12px;
                border-width: 2px;
                margin: 0;
                border-radius: 12px;
            }
            
            .header-logo {
                max-height: 100%;
            }
            
            .header h1 {
                font-size: 1.5rem;
                margin: 15px 0 8px;
            }
            
            .header p {
                font-size: 0.9rem;
                margin-bottom: 20px;
            }
            
            .form-group {
                margin-bottom: 20px;
            }
            
            .form-group label {
                font-size: 0.9rem;
                margin-bottom: 8px;
                display: flex;
                align-items: center;
                gap: 8px;
            }
            
            .form-group input {
                padding: 16px 14px;
                font-size: 1rem;
                border-radius: 8px;
                border: 2px solid #ddd;
            }
            
            .btn-submit {
                padding: 18px;
                font-size: 1rem;
                border-radius: 10px;
                margin-top: 15px;
            }
            
            .dropdown-trigger {
                padding: 16px;
                font-size: 0.95rem;
            }
            
            .dropdown-option {
                padding: 14px;
                font-size: 0.95rem;
            }
            
            .confirm-modal-content {
                padding: 25px 20px;
                margin: 10px;
                width: calc(100% - 20px);
            }
            
            .confirm-modal-title {
                font-size: 1.5rem;
            }
            
            .confirm-buttons {
                flex-direction: column;
            }
            
            .info-box {
                padding: 15px;
                margin: 20px 0;
            }
            
            .info-box h3 {
                font-size: 1.2rem;
            }
            
            .info-box li {
                font-size: 0.9rem;
                margin-bottom: 10px;
                padding-left: 25px;
            }
        }
        
        /* ==================== LOADING OVERLAY ==================== */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            flex-direction: column;
        }
        
        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #e74c3c;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
        
        .loading-text {
            color: #2c3e50;
            font-size: 1.3rem;
            font-weight: 600;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* ==================== CONFIRMATION MODAL ==================== */
        .confirm-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            animation: fadeIn 0.3s ease;
            padding: 20px;
        }
        
        .confirm-modal-content {
            background: white;
            border-radius: 20px;
            padding: 40px;
            max-width: 100%;
            width: 90%;
            text-align: center;
            animation: slideUp 0.4s ease;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        .confirm-modal-icon {
            font-size: 60px;
            color: #e74c3c;
            margin-bottom: 20px;
        }
        
        .confirm-modal-title {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        .confirm-modal-message {
            color: #7f8c8d;
            margin-bottom: 25px;
            font-size: 1.1rem;
            line-height: 1.6;
        }
        
        .confirm-details {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin: 25px 0;
            text-align: left;
        }
        
        .confirm-detail {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .confirm-detail:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .confirm-label {
            font-weight: 600;
            color: #555;
        }
        
        .confirm-value {
            color: #2c3e50;
            font-weight: 500;
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .confirm-info {
            background: #e7f3fe;
            border-radius: 8px;
            padding: 15px;
            margin: 20px 0;
            color: #0c5460;
            font-size: 0.9rem;
            text-align: left;
        }
        
        .confirm-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }
        
        .confirm-btn {
            flex: 1;
            padding: 15px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .cancel-btn {
            background: #95a5a6;
            color: white;
        }
        
        .cancel-btn:hover {
            background: #7f8c8d;
            transform: translateY(-2px);
        }
        
        .submit-btn {
            background: #2ecc71;
            color: white;
        }
        
        .submit-btn:hover {
            background: #27ae60;
            transform: translateY(-2px);
        }
        
        .warning-note {
            background: #fef9e7;
            border-left: 4px solid #f39c12;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            text-align: left;
        }
        
        .warning-note h4 {
            color: #f39c12;
            margin-top: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* Custom styles for ERNITAGROUP */
        .header h1 {
            color: #e74c3c;
        }
        
        .btn-submit {
            background: linear-gradient(to right, #e74c3c, #c0392b);
            color: white;
            border: none;
            padding: 18px;
            border-radius: 10px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
            width: 100%;
        }
        
        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 15px rgba(231, 76, 60, 0.3);
            background: linear-gradient(to right, #c0392b, #a93226);
        }
        
        .btn-list {
            background: linear-gradient(to right, #3498db, #2980b9);
            color: white;
            padding: 12px 25px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }
        
        .btn-list:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
        }
        
        .info-box {
            border-left: 5px solid #e74c3c;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }
        
        .info-box li i {
            color: #e74c3c;
        }
        
        .form-group input:focus {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
        }
        
        /* Dropdown Section */
        .dropdown-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0 30px 0;
            border: 2px solid #e0e0e0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .dropdown-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            color: #2c3e50;
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .dropdown-header i {
            color: #3498db;
            font-size: 1.3rem;
        }
        
        .dropdown-wrapper {
            position: relative;
            width: 100%;
            margin-bottom: 20px;
        }
        
        .dropdown-trigger {
            width: 100%;
            padding: 18px 20px;
            background: white;
            border: 2px solid #3498db;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-align: left;
            transition: all 0.3s ease;
        }
        
        .dropdown-trigger:hover {
            background: #f8f9fa;
            border-color: #2980b9;
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
        }
        
        .dropdown-trigger i:first-child {
            color: #3498db;
            margin-right: 10px;
        }
        
        .dropdown-arrow {
            transition: transform 0.3s ease;
            color: #7f8c8d;
        }
        
        .dropdown-trigger.active .dropdown-arrow {
            transform: rotate(180deg);
            
        }
        
        .dropdown-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            display: none;
            margin-top: 5px;
            overflow: hidden;
            animation: fadeIn 0.3s ease;
        }
        
        .dropdown-list.show {
            display: block;
        }
        
        .dropdown-option {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            text-decoration: none;
            color: #2c3e50;
            font-weight: 500;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.2s ease;
            gap: 12px;
            cursor: pointer;
        }
        
        .dropdown-option:last-child {
            border-bottom: none;
        }
        
        .dropdown-option:hover {
            background: #f8f9fa;
            color: #3498db;
            padding-left: 25px;
        }
        
        .dropdown-option i {
            width: 20px;
            text-align: center;
            color: #7f8c8d;
        }
        
        .dropdown-option:hover i {
            color: #3498db;
        }
        
        /* Selected Info */
        .selected-info {
            background: #e7f3fe;
            border-radius: 10px;
            padding: 20px;
            margin-top: 15px;
            animation: slideDown 0.3s ease;
            border-left: 4px solid #3498db;
            display: none;
        }
        
        .selected-info.show {
            display: block;
        }
        
        .selected-info p {
            color: #0c5460;
            margin-bottom: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .selected-info p i {
            color: #2ecc71;
        }
        
        #selectedName {
            color: #2c3e50;
            font-weight: 700;
            background: #fff;
            padding: 2px 10px;
            border-radius: 5px;
            margin: 0 5px;
        }
        
        .btn-go {
            display: inline-block;
            background: linear-gradient(to right, #2ecc71, #27ae60);
            color: white;
            padding: 12px 30px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
        }
        
        .btn-go:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
            background: linear-gradient(to right, #27ae60, #2ecc71);
        }
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(50px); 
            }
            to { 
                opacity: 1;
                transform: translateY(0); 
            }
        }
        
        /* Pesan notifikasi */
        .pesan {
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 25px;
            font-weight: 500;
            text-align: center;
            animation: fadeIn 0.5s ease;
        }
        
        .pesan.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .pesan.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        /* Responsive for all devices */
        @media (max-width: 768px) {
            .confirm-modal-content {
                padding: 25px 20px;
            }
            
            .confirm-buttons {
                flex-direction: column;
            }
            
            .confirm-detail {
                flex-direction: column;
                gap: 5px;
            }
            
            .confirm-value {
                max-width: 100%;
            }
            
            .dropdown-section {
                padding: 20px 15px;
            }
            
            .dropdown-header {
                flex-direction: column;
                text-align: center;
                gap: 8px;
            }
            
            .dropdown-trigger {
                padding: 15px;
                font-size: 1rem;
            }
            
            .dropdown-option {
                padding: 12px 15px;
            }
            
            .btn-go {
                width: 100%;
                justify-content: center;
            }
        }