/* NBN Brand Colors */
:root {
    --nbn-primary: #1e3a8a;
    --nbn-primary-dark: #1e3370;
    --nbn-light-blue: #3b82f6;
    --nbn-accent: #00a9e0;
    --nbn-gradient-start: #60a5fa;
    --nbn-gradient-end: #1e3a8a;
    --nbn-success: #10b981;
    --nbn-gray: #6b7280;
    --nbn-light-gray: #f3f4f6;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Proxima Nova', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Section - Modern Split Design */
#loginSection {
    min-height: 100vh;
    position: relative;
    background: #f8fafc;
}

.login-header {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 100;
}

.nbn-logo-login {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Hero Section */
.login-hero {
    background: linear-gradient(135deg, var(--nbn-primary) 0%, var(--nbn-light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 20px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-title sup {
    font-size: 1.2rem;
    top: -1.2em;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--nbn-accent);
    margin-bottom: 24px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 450px;
}
}

/* Background Pattern */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, white 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, white 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, white 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, white 0%, transparent 30%);
}

/* Right Login Form Section */
.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: white;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-box-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-box-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nbn-primary);
    margin-bottom: 8px;
}

.login-box-header p {
    color: var(--nbn-gray);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

#loginForm input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: all 0.3s ease;
}

#loginForm input:focus {
    outline: none;
    border-color: var(--nbn-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--nbn-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-btn:hover {
    background: var(--nbn-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
}

.login-help {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.login-help p {
    color: var(--nbn-gray);
    font-size: 14px;
}

.login-help code {
    background: var(--nbn-light-gray);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--nbn-primary);
    font-weight: 600;
}

.error {
    color: #ef4444;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

/* Header - Modern NBN Style */
header {
    background: linear-gradient(135deg, var(--nbn-primary) 0%, var(--nbn-light-blue) 100%);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.15);
    padding: 28px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
}

.header-content h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nbn-logo-header {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

#userDisplay {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
}

#logoutBtn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#logoutBtn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--nbn-primary) 0%, var(--nbn-light-blue) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.banner-text h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs - Modern NBN Style */
.tabs {
    background: white;
    padding: 0;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 96px;
    z-index: 90;
    border-bottom: 1px solid rgba(30, 58, 138, 0.08);
}

.tab-btn {
    padding: 20px 40px;
    background: white;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--nbn-gray);
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
}

.tab-btn:hover {
    background: #f8fafc;
    color: var(--nbn-primary);
}

.tab-btn.active {
    background: linear-gradient(180deg, #f0f9ff 0%, white 100%);
    color: var(--nbn-primary);
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 4px;
    background: linear-gradient(90deg, var(--nbn-accent) 0%, var(--nbn-primary) 100%);
    border-radius: 4px 4px 0 0;
}

.tab-content {
    padding: 40px 0;
    min-height: calc(100vh - 400px);
    position: relative;
    z-index: 1;
}

/* Portal Background */
#portalSection {
    background: linear-gradient(180deg, white 0%, #f8fafc 100%);
    min-height: 100vh;
    position: relative;
}

#portalSection::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 58, 138, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 169, 224, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Filters - Modern NBN Style */
.filters {
    background: white;
    padding: 28px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
}

.filters::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nbn-accent) 0%, var(--nbn-primary) 50%, var(--nbn-light-blue) 100%);
}

.filters select,
.filters input {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--nbn-light-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filters input {
    flex: 1;
    min-width: 250px;
}

/* Applicants Grid - Modern NBN Style */
.applicants-grid {
    animation: fadeInUp 0.5s ease-out;
    width: 100%;
}

/* Applicant Cards Grid Layout */
.applicant-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

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

.applicant-card {
    background: white;
    padding: 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.08);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.06);
    position: relative;
    overflow: hidden;
}

.applicant-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--nbn-accent) 0%, var(--nbn-primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.applicant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.2);
}

.applicant-card:hover::before {
    opacity: 1;
}

.applicant-card.rated {
    background: linear-gradient(135deg, white 0%, #f0fdf4 100%);
    border-color: var(--nbn-success);
}

.applicant-card.rated::before {
    background: var(--nbn-success);
    opacity: 1;
}

.applicant-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.applicant-id {
    color: var(--nbn-gray);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-badge {
    background: var(--nbn-success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.applicant-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
}

.applicant-org {
    color: var(--nbn-gray);
    margin-bottom: 12px;
    font-size: 14px;
}

.applicant-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--nbn-gray);
    align-items: center;
}

.category-tag {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    color: var(--nbn-primary);
    border: 1px solid rgba(30, 58, 138, 0.1);
    font-size: 13px;
    white-space: nowrap;
}

/* Progress Stats - Modern NBN Style */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 36px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.08);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.12);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--nbn-accent) 0%, var(--nbn-primary) 100%);
    opacity: 0.03;
}

.stat-card h3 {
    color: var(--nbn-gray);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--nbn-primary) 0%, var(--nbn-light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal - Modern NBN Style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    border-radius: var(--border-radius);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    cursor: pointer;
    color: var(--nbn-gray);
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: var(--nbn-primary);
}

/* Applicant Details - NBN Style */
.detail-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.detail-header h2 {
    color: var(--nbn-primary);
    font-size: 28px;
    margin-bottom: 8px;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h3 {
    color: var(--nbn-primary);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.detail-section h3::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--nbn-accent) 0%, var(--nbn-primary) 100%);
    margin-right: 12px;
    border-radius: 2px;
}

.detail-section p {
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.detail-item {
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e5e7eb;
}

.detail-item label {
    font-size: 12px;
    color: var(--nbn-gray);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

/* Rating Section - Modern NBN Style */
.rating-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid rgba(30, 58, 138, 0.2);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-top: 36px;
    position: relative;
    overflow: hidden;
}

.rating-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nbn-accent) 0%, var(--nbn-primary) 100%);
}

.rating-section h3 {
    margin-bottom: 20px;
    color: var(--nbn-primary);
    font-size: 20px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.rating-input label {
    font-weight: 600;
    color: var(--nbn-gray);
    font-size: 14px;
}

.rating-input input {
    width: 100px;
    padding: 12px;
    border: 2px solid var(--nbn-primary);
    border-radius: var(--border-radius-sm);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: var(--nbn-primary);
}

.rating-input input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.rating-input span {
    font-size: 20px;
    font-weight: 700;
    color: var(--nbn-primary);
}

.rating-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    resize: vertical;
    min-height: 120px;
    margin-bottom: 20px;
    font-family: inherit;
}

.rating-section textarea:focus {
    outline: none;
    border-color: var(--nbn-light-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rating-section button {
    padding: 14px 32px;
    background: var(--nbn-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rating-section button:hover {
    background: var(--nbn-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.existing-rating {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--nbn-success);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    color: #065f46;
}

.existing-rating strong {
    color: #047857;
}

/* Video Container - NBN Style */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #0f172a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--border-radius);
}

.video-container::before {
    content: "Loading video...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--nbn-gray);
    font-size: 14px;
    z-index: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-hero {
        padding: 40px;
        min-height: 40vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .login-form-section {
        padding: 40px;
    }
}

/* Hide admin-only elements by default */
.admin-only {
    display: none !important;
}

/* Show admin elements when user is admin */
.is-admin .admin-only {
    display: inline-block !important;
}

/* Import Admin Styles from admin.css */
/* Stats Banner */
.stats-banner {
    background: linear-gradient(135deg, #667eea 0%, #4c51bf 100%);
    padding: 40px 0;
    color: white;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 14px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Selector */
.category-selector-section {
    background: #f7fafc;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.category-selector-section h2 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4a5568;
}

.category-btn:hover {
    border-color: #667eea;
    background: #f7f9ff;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Judge Category Selector (similar to admin) */
.judge-category-selector {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.judge-category-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4a5568;
}

.judge-category-btn:hover {
    border-color: var(--nbn-primary);
    background: #f0f9ff;
    transform: translateY(-2px);
}

.judge-category-btn.active {
    background: var(--nbn-primary);
    color: white;
    border-color: var(--nbn-primary);
}

/* Section Header with Search */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h3 {
    font-size: 24px;
    color: #2d3748;
    margin: 0;
}

.view-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.view-options input {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-width: 250px;
    font-size: 14px;
}

.view-options select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

/* Admin Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Admin Card */
.admin-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.admin-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-id {
    color: #718096;
    font-size: 13px;
    font-weight: 600;
}

.regional-tag {
    background: #48bb78;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hidden applicant badge */
.hidden-tag {
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Admin card with hidden applicant */
.admin-card.is-hidden {
    opacity: 0.7;
    border-color: #ef4444;
}

.admin-card.is-hidden:hover {
    opacity: 1;
    border-color: #ef4444;
}

.applicant-info h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 18px;
}

.org-name {
    color: #718096;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* Admin Metrics */
.admin-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.metric-value {
    font-size: 16px;
    font-weight: bold;
    color: #2d3748;
}

/* Score color coding */
.score-high {
    color: #48bb78 !important;
}

.score-medium {
    color: #ed8936 !important;
}

.score-low {
    color: #e53e3e !important;
}

/* Completion bar */
.completion-bar {
    width: 120px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.completion-high {
    background: #48bb78;
}

.completion-medium {
    background: #ed8936;
}

.completion-low {
    background: #e53e3e;
}

/* Card Footer */
.admin-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.budget {
    font-size: 18px;
    color: #667eea;
    font-weight: bold;
}

/* Judges Management Styles */
.judges-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.judge-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.judge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--nbn-primary);
}

.judge-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.judge-info h4 {
    margin: 0 0 8px 0;
    color: var(--nbn-primary);
    font-size: 18px;
    font-weight: 700;
}

.judge-email {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.judge-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-toggle {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-edit {
    background: #e0f2fe;
    color: var(--nbn-primary);
}

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

.btn-toggle {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-toggle.active {
    background: var(--nbn-success);
    color: white;
}

.btn-toggle:hover:not(.active) {
    background: #e5e7eb;
}

.judge-categories {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.category-badge {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: var(--nbn-primary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.universal-badge {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--nbn-success);
}

.no-categories {
    color: #ef4444;
    font-style: italic;
    font-size: 13px;
    padding: 6px 12px;
    background: #fef2f2;
    border-radius: 16px;
    border: 1px solid #fecaca;
}

.judge-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.judge-stats .stat {
    text-align: center;
}

.judge-stats .stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.judge-stats .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--nbn-primary);
}

.judge-stats .stat-value.inactive {
    color: #ef4444;
}

.judge-stats .progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
}

.judge-stats .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nbn-accent) 0%, var(--nbn-primary) 100%);
    transition: width 0.3s ease;
}

.add-judge-btn {
    padding: 10px 20px;
    background: var(--nbn-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-judge-btn:hover {
    background: var(--nbn-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--nbn-primary);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast.success {
    border-left-color: var(--nbn-success);
}

.toast.success .toast-icon {
    color: var(--nbn-success);
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info {
    border-left-color: var(--nbn-accent);
}

.toast.info .toast-icon {
    color: var(--nbn-accent);
}

@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .container {
        padding: 16px;
    }
    
    .applicant-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .judge-category-selector {
        padding: 15px;
    }
    
    .judge-category-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .judges-management-grid {
        grid-template-columns: 1fr;
    }
    
    .judge-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .judge-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .judge-actions {
        width: 100%;
    }
    
    .btn-edit, .btn-toggle {
        flex: 1;
    }
    
    .login-header {
        top: 20px;
        right: 20px;
    }
    
    .nbn-logo-login {
        height: 40px;
    }
    
    .login-hero {
        padding: 30px;
        min-height: 30vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .login-form-section {
        padding: 30px 20px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    
    .header-content h1 {
        font-size: 1.4rem;
    }
    
    .nbn-logo-header {
        height: 50px;
        margin: 0 auto;
        padding: 10px;
    }
    
    .welcome-banner {
        padding: 40px 20px;
    }
    
    .banner-text h2 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1.05rem;
    }
    
    .tabs {
        position: static;
    }
    
    .tab-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .applicants-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    .tabs {
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters input,
    .filters select {
        width: 100%;
    }
    
    .confirm-modal-content {
        max-width: 500px !important;
        padding: 32px !important;
    }
    
    .confirm-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirm-actions button {
        width: 100%;
    }
}

/* Custom Confirmation Modal */
.confirm-modal-content {
    max-width: 480px;
    padding: 0;
    overflow: hidden;
}

.confirm-header {
    background: linear-gradient(135deg, var(--nbn-primary) 0%, var(--nbn-light-blue) 100%);
    padding: 24px 32px;
    border-bottom: 3px solid var(--nbn-accent);
}

.confirm-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirm-body {
    padding: 32px;
    background: white;
}

.confirm-body p {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.confirm-actions {
    padding: 20px 32px 32px 32px;
    background: white;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-actions button {
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

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

.btn-primary:hover {
    background: var(--nbn-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

