:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #0ea5e9;
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 10px 24px rgba(15, 23, 42, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.nav-logo span {
    color: var(--primary);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.nav-btn.active {
    color: var(--primary-dark);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

/* Tabs */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/map1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Faded effect */
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: white;
    color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 60px;
}

.timeline-time {
    position: absolute;
    left: -40px;
    top: 0;
    background: white;
    padding: 0.25rem 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-time::before {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card-hover);
    display: block;
    margin: 0 auto 1.5rem;
}

/* ================== NEW ACTIVITIES GRID (From Draft) ================== */
.comp-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
}

.activity-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--card-theme, var(--primary-dark));
}

.activity-card:hover {
    border-color: var(--card-theme, var(--primary-blue));
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* Executive Theme Accents */
.theme-1 { --card-theme: #be123c; } /* Crimson */
.theme-2 { --card-theme: #1d4ed8; } /* Royal Blue */
.theme-3 { --card-theme: #0284c7; } /* Sky Blue */
.theme-4 { --card-theme: #047857; } /* Emerald */
.theme-5 { --card-theme: #b45309; } /* Amber Gold */
.theme-6 { --card-theme: #6d28d9; } /* Purple */
.theme-7 { --card-theme: #334155; } /* Slate Navy */
.theme-8 { --card-theme: #be185d; } /* Rose */

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.num-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--card-theme, var(--primary-dark));
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.level-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-details-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-body);
}

.detail-row i {
    color: var(--card-theme, var(--primary-blue));
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.detail-val {
    font-weight: 600;
    color: var(--text-main);
}

.card-actions-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.card-open-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.activity-card:hover .card-open-btn {
    background: var(--card-theme, var(--primary-dark));
    border-color: var(--card-theme, var(--primary-dark));
    color: #ffffff;
}

.icon-open-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.icon-open-btn:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

/* Sub file chips */
.subfiles-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.subfile-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.subfile-chip:hover {
    background: var(--card-theme, var(--primary-dark));
    color: #ffffff;
    border-color: var(--card-theme, var(--primary-dark));
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.05);
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.1);
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
}

.modal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

.modal-header h3 {
    font-size: 1.5rem;
    padding-right: 2rem;
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem 2rem;
    color: var(--text-muted);
}

.reward-list {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

.reward-list li {
    padding: 0.75rem;
    background: var(--bg-main);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
}

.reward-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    text-align: right;
    background: var(--bg-main);
}

footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    background: white;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-time {
        position: relative;
        left: 0;
        top: 0;
        display: inline-block;
        margin-bottom: 0.5rem;
        margin-left: 10px;
    }
    
    .timeline-time::before {
        display: none;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
}

/* PDF Viewer Modal Window */
.viewer-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.viewer-modal-window {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer-modal-backdrop.active .viewer-modal-window {
    transform: scale(1);
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.pdf-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.pdf-modal-close {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.pdf-modal-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.pdf-modal-body {
    flex: 1;
    background: #f1f5f9;
    position: relative;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pdf-modal-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: var(--primary-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pdf-modal-download:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Hero Announcement Button */
.btn-announce {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 2px #059669;
}

.btn-announce:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

/* ================== PARTICIPANTS ANNOUNCEMENT PAGE ================== */
.regis-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.regis-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.regis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--card-theme, var(--primary-dark));
}

.regis-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--card-theme, var(--primary));
}

.regis-card.active-list {
    border-color: var(--card-theme, var(--primary));
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14), var(--shadow-card-hover);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.regis-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.regis-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.regis-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.regis-card-meta {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.regis-levels-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.regis-level-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    transition: all 0.2s ease;
}

.regis-level-item.active-level {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}

.regis-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.regis-level-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.regis-level-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.regis-level-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.regis-level-actions .btn-regis-action {
    padding: 0.32rem 0.5rem;
    font-size: 0.74rem;
    border-radius: 5px;
    gap: 0.25rem;
}

.regis-level-actions .btn-web-view {
    flex: 1;
}

.regis-card.is-pending {
    background: #fcfcfd;
}

.regis-pending-box {
    margin-top: auto;
    padding: 0.65rem 0.75rem;
    background: #fffbeb;
    border: 1px dashed #fcd34d;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.regis-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
}

.regis-pending-date {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #78350f;
    line-height: 1.4;
}

.regis-pending-date i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d97706;
}

.btn-regis-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.52rem 0.85rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-web-view {
    background: #eff6ff;
    color: var(--primary-dark);
    border-color: #bfdbfe;
}

.btn-web-view:hover,
.btn-web-view.is-active,
.regis-level-item.active-level .btn-web-view {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-regis-pdf {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.btn-regis-pdf:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-regis-download {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.btn-regis-download:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.btn-line-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.36rem 0.6rem;
    background: linear-gradient(135deg, #06c755 0%, #05b34c 100%);
    color: #ffffff;
    border: 1px solid #05a646;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(6, 199, 85, 0.22);
    transition: all 0.2s ease;
}

.btn-line-group:hover {
    background: linear-gradient(135deg, #05b34c 0%, #049a41 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.32);
}

.btn-line-group-panel {
    background: linear-gradient(135deg, #06c755 0%, #05b34c 100%);
    color: #ffffff;
    border-color: #05a646;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.25);
}

.btn-line-group-panel:hover {
    background: linear-gradient(135deg, #05b34c 0%, #049a41 100%);
    color: #ffffff;
    border-color: #049a41;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
}

.line-badge-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #06c755;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    line-height: 1.2;
    flex-shrink: 0;
}

/* Interactive Web Viewer Panel */
.regis-web-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.regis-panel-header {
    padding: 1.4rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.regis-panel-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}

.regis-panel-title-wrap h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.regis-panel-title-wrap p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.regis-panel-pdf-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.regis-toolbar {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.regis-selector-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.regis-tab-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.regis-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.regis-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.regis-search-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.regis-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 500px;
}

.regis-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--text-muted);
    pointer-events: none;
}

#regis-search-input {
    width: 100%;
    padding: 0.6rem 2.2rem 0.6rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-main);
    background: #f8fafc;
    transition: all 0.2s ease;
}

#regis-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.regis-search-clear {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regis-search-clear:hover {
    background: #cbd5e1;
}

.regis-result-count {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Registration Table */
.regis-table-wrapper {
    width: 100%;
    overflow-x: auto;
    max-height: 640px;
    overflow-y: auto;
}

.regis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.regis-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.regis-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.15s ease;
}

.regis-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.regis-table tbody tr:hover {
    background: #eff6ff;
}

.regis-table td {
    padding: 0.8rem 1rem;
    vertical-align: top;
    color: var(--text-main);
}

.regis-no-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.84rem;
}

.regis-name-th {
    font-weight: 600;
    color: var(--text-main);
}

.regis-name-en {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.regis-school-cell {
    font-weight: 500;
    color: #1e293b;
}

.regis-list-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.regis-list-ul li {
    font-size: 0.88rem;
    line-height: 1.45;
}

.regis-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.regis-empty-state p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Quick link pill on Competition Card */
.regis-comp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 0.5rem;
}

.regis-comp-link:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

@media (max-width: 768px) {
    .regis-panel-header {
        padding: 1.1rem;
    }

    .regis-toolbar {
        padding: 0.9rem 1.1rem;
    }

    .regis-table thead th,
    .regis-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.84rem;
    }
}
