/* Recruitment App Specific Styles */

/* --- Layout & Containers --- */
.main-container {
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
}

.glass-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

.header-gradient-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-layout-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.form-header-icon i {
    font-size: 3.5rem;
    color: white;
}

.role-icon i {
    font-size: 3.5rem;
    color: white;
}

.form-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.glass-content-box {
    padding: 2.5rem;
}

.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.selection-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* --- Selection Grid (Role Selection) --- */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
}

.role-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.role-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.role-card:hover .role-icon {
    transform: scale(1.1) rotate(5deg);
}

.role-icon.player-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.role-icon.coach-icon {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.role-card h3 {
    color: white;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.role-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Wizard Progress --- */
.wizard-progress-container {
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.progress-track {
    position: absolute;
    top: 16px;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    z-index: 0;
}

.progress-line-bg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.step-item.active {
    opacity: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px var(--bg-dark);
    /* Fake spacing around line */
}

.step-item.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--bg-dark), 0 0 15px rgba(59, 130, 246, 0.5);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: white;
}

/* --- Form Components --- */
.wizard-step {
    animation: fadeIn 0.4s ease-out;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.step-indicator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.glass-label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.glass-label i {
    margin-right: 0.5rem;
}

.form-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
    margin-bottom: 1.5rem;
}

.form-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-errors li {
    color: #f87171;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.form-errors li i {
    margin-right: 0.5rem;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.glass-input,
.glass-textarea,
.glass-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.glass-input:focus,
.glass-textarea:focus,
.glass-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.glass-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    cursor: pointer;
}

.glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.grid-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-checkbox-item {
    position: relative;
}

.glass-checkbox-item input[type="checkbox"],
.glass-checkbox-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.glass-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
}

.glass-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.glass-checkbox-item input[type="checkbox"]:checked+.glass-checkbox-label,
.glass-checkbox-item input[type="radio"]:checked+.glass-checkbox-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Tier Option Specifics */
.tier-option {
    border-color: var(--tier-color, rgba(255, 255, 255, 0.1));
}

.glass-checkbox-item input[type="checkbox"]:checked+.tier-option,
.glass-checkbox-item input[type="radio"]:checked+.tier-option {
    background: var(--tier-color) !important;
    border-color: var(--tier-color) !important;
    color: #0f172a !important;
    /* Dark text on bright tier colors */
    font-weight: 700;
    box-shadow: 0 0 15px var(--tier-color);
}

/* Toggle Switch Wrapper */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Agent Pool Editor (Drag & Drop) --- */
.tierlist-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-lane {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.02);
}

.tier-header {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tier-content {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.agent-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    min-height: 100px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.agent-item {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
}

.agent-item:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    z-index: 10;
}

.agent-item:active {
    cursor: grabbing;
}

.agent-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Tournaments & History Lists --- */
.tournament-item,
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
}

.tournament-item:hover,
.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.tr-name {
    font-weight: 600;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
}

.tr-actions {
    display: flex;
    gap: 0.5rem;
}

.tr-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tr-btn.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.tr-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.tr-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.tr-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Placement Badges */
.placement-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.badge-gold {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-silver {
    background: rgba(226, 232, 240, 0.15);
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.badge-bronze {
    background: rgba(180, 83, 9, 0.15);
    color: #d97706;
    border: 1px solid rgba(180, 83, 9, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* --- Modals --- */
.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.glass-modal-content {
    background: #0f172a;
    /* Solid dark/blue for modal to prevent too much transparency issues */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Recruitment Cards (List View) --- */
.recruitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.recruitment-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.recruitment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Card Header */
.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
    width: 100%;
}

.recruitment-img-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    flex-shrink: 0;
}

.recruitment-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruitment-img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
}

.recruitment-card-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Card Body */
.card-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    flex-grow: 1;
    z-index: 1;
}

.preview-heading {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-card-text {
    font-style: italic;
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 80px;
    max-width: 200px;
    justify-self: center;
}

/* Badges */
.verified-badge {
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
}

.verified-badge.gold {
    color: #fbbf24;
}

.verified-badge svg {
    width: 1.2em;
    height: 1.2em;
}

.tier-label {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.tier-label.t1\.0,
.tier-label.tVCT {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.1);
}

.tier-label.t1\.5,
.tier-label.tTop.VCL {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.tier-label.t2\.0,
.tier-label.tVCL {
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.3);
    background: rgba(129, 140, 248, 0.1);
}

.tier-label.t2\.5,
.tier-label.tTop.VRC {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
}

.tier-label.t3\.0,
.tier-label.tVRC {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.1);
}

.tier-label.tAmateur {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.1);
}

.preview-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Paid Badge */
.paid-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* Agent Pool In Card */
.agent-pool-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 8px;
    border-radius: 8px;
}

.agent-pool-label {
    min-width: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* List Items (History/Tournaments in Card) */
.preview-list-item {
    font-size: 0.85rem;
    color: white;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.preview-list-item:last-child {
    border-bottom: none;
}

.date-badge {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

.recruitment-card-footer {
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Skeleton Loader */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton {
    animation: pulse 1.5s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.skeleton.circle {
    border-radius: 50%;
}

.empty-state-msg {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Filters --- */
.recruitment-filters {
    margin-bottom: 2rem;
    animation: fadeIn 0.4s ease-out;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.filter-group-expanded {
    flex: 2;
    min-width: 250px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.glass-input.compact-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    height: 42px;
    /* Fixed height for alignment */
}

.form-label.compact {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Mobile adjustments for filters */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group,
    .filter-group-expanded {
        max-width: 100%;
        width: 100%;
    }
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    color: var(--text-secondary);
}

/* --- Public Card Showcase --- */
.showcase-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    margin: 2rem 0;
    perspective: 1000px;
}

.showcase-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    width: 400px;
    /* Base width */
    flex-shrink: 0;
    /* Ensure glass container styles don't conflict, use important if needed or handle in html */
}

/* Center Card (2nd child) */
.showcase-card:nth-child(2) {
    z-index: 10;
    transform: scale(1.1);
    filter: brightness(1.1);
    width: 600px;
}

/* Side Cards (1st and 3rd) */
.showcase-card:nth-child(1),
.showcase-card:nth-child(3) {
    z-index: 5;
    filter: brightness(0.6) blur(0.5px);
    opacity: 0.9;
}

/* Left Card positioning (1st) */
.showcase-card:nth-child(1) {
    transform: translateX(15%) scale(0.9) rotateY(5deg);
}

/* Right Card positioning (3rd) */
.showcase-card:nth-child(3) {
    transform: translateX(-15%) scale(0.9) rotateY(-5deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-container {
        flex-direction: column;
        gap: 2rem;
    }

    .showcase-card,
    .showcase-card:nth-child(1),
    .showcase-card:nth-child(2),
    .showcase-card:nth-child(3) {
        transform: none;
        width: 100%;
        max-width: 400px;
        filter: none;
        opacity: 1;
        z-index: 1;
    }
}

/* --- Multi-select Filters --- */
.multi-select-container {
    position: relative;
    width: 100%;
}

.multi-select-trigger {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.multi-select-trigger::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 0.5rem;
    padding: 0.75rem;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.2s ease-out;
}

.multi-select-dropdown.show {
    display: block;
}

.multi-select-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-secondary);
}

.multi-select-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.multi-select-item input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.multi-select-item span {
    font-size: 0.9rem;
    white-space: nowrap;
}