/* Participants Info Section Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.participants-section {
    background: linear-gradient(135deg, var(--bg-color-light) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.participants-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.15);
}

.participants-section .section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.participants-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 1rem;
    border-radius: 20px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

.clear-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.clear-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.clear-btn:active {
    transform: scale(0.95);
}

/* Results Container */
.participant-results {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.participant-results.compact {
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
}

.no-results {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Participants List */
.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.participant-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--success-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.participant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
}

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

.participant-card.exact-match {
    border-color: rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(34, 211, 238, 0.05));
}

.participant-card.exact-match::before {
    background: linear-gradient(90deg, #4caf50, var(--primary-color), var(--secondary-color));
    opacity: 1;
}

.participant-card.exact-match:hover {
    border-color: rgba(76, 175, 80, 0.7);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.participant-id,
.participant-login,
.participant-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.participant-id:last-child,
.participant-login:last-child,
.participant-name:last-child {
    border-bottom: none;
}

.participant-id .label,
.participant-login .label,
.participant-name .label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.participant-id .value,
.participant-login .value,
.participant-name .value {
    color: var(--text-color);
    font-weight: 500;
    background: linear-gradient(135deg, var(--text-color), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .participants-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }

    .teammates-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 18px;
    }
}

@media screen and (max-width: 1024px) {
    .participants-list {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 15px;
    }

    .teammates-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }

    .unique-teammates-popup {
        max-width: 90vw;
        width: 90vw;
    }
}

@media screen and (max-width: 768px) {
    .participants-section {
        padding: 20px;
        margin: 15px 0;
    }

    .participants-section .section-title {
        font-size: 1.3rem;
    }

    .search-input-group {
        max-width: 100%;
    }

    .participants-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .participant-card {
        padding: 15px;
    }

    .participant-id,
    .participant-login,
    .participant-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .participant-id .label,
    .participant-login .label,
    .participant-name .label {
        font-size: 0.8rem;
    }

    .unique-teammates-popup {
        width: 95vw;
        max-width: 95vw;
        margin: 0 2.5vw;
        max-height: 85vh;
    }

    .popup-header {
        padding: 15px 20px;
    }

    .popup-header h3 {
        font-size: 1.1rem;
    }

    .popup-body {
        padding: 15px 20px 20px 20px;
        max-height: 70vh;
    }

    .teammates-container {
        max-height: 50vh;
    }

    .teammate-item {
        padding: 12px 15px;
    }
}

/* Teamwork Status Styles */
.teamwork-section {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-color-light) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.teamwork-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.15);
}

.teamwork-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teamwork-container {
    position: relative;
}

.teamwork-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(34, 211, 238, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.teamwork-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.no-teamwork {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.no-teamwork h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Teamwork Stats */
.teamwork-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.3);
}

.stat-item[onclick] {
    cursor: pointer;
}

.stat-item[onclick]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.25);
    border-color: rgba(34, 211, 238, 0.5);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 2px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Teammates */
.teammates-header {
    margin-bottom: 20px;
}

.teammates-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.teammates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.teammate-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.teammate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--success-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teammate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
}

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

.teammate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.teammate-info {
    flex: 1;
}

.teammate-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.teammate-login {
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.projects-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.count-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
}

.count-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}


.project-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 211, 238, 0.3);
}

.project-name {
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    font-size: 14px;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .teamwork-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .teammates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .teammate-card {
        padding: 15px;
    }

    .teammate-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .projects-count {
        align-self: flex-end;
    }
}

@media screen and (max-width: 600px) {
    .participants-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .teammates-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .unique-teammates-popup {
        max-width: 95%;
        margin: 0 5px;
        width: calc(100vw - 10px);
    }

    .popup-header {
        padding: 12px 15px;
    }

    .popup-body {
        padding: 12px 15px 15px 15px;
    }
}

/* Unique Teammates Popup Responsive Design */
@media screen and (max-width: 768px) {
    .unique-teammates-overlay {
        padding: 15px;
    }

    .unique-teammates-popup {
        max-width: 95vw;
        width: 95vw;
        max-height: 85vh;
    }

    .unique-teammates-header {
        padding: 15px 20px;
    }

    .unique-teammates-header h3 {
        font-size: 1.1rem;
    }

    .unique-teammates-body {
        padding: 15px 20px 20px 20px;
        max-height: 70vh;
    }

    .unique-teammates-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .unique-teammates-grid {
        max-height: 50vh;
    }

    .unique-teammate-card {
        padding: 12px 15px;
    }
}

@media screen and (max-width: 480px) {
    .participants-section {
        padding: 15px;
        margin: 10px 0;
    }

    .participants-section .section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .search-input-group {
        padding: 3px;
    }

    .search-input {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .search-btn,
    .clear-btn {
        width: 35px;
        height: 35px;
    }

    .teamwork-section {
        padding: 15px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .teammate-card {
        padding: 12px;
    }

    .project-item {
        padding: 10px 12px;
    }

    .unique-teammates-overlay {
        padding: 10px;
    }

    .unique-teammates-popup {
        max-width: 95%;
        margin: 0 5px;
        max-height: 90vh;
    }

    .unique-teammates-header {
        padding: 10px 15px;
    }

    .unique-teammates-header h3 {
        font-size: 1rem;
        gap: 8px;
    }

    .unique-teammates-body {
        padding: 10px 15px 15px 15px;
        max-height: 75vh;
    }

    .unique-teammates-grid {
        max-height: 60vh;
    }

    .unique-teammate-card {
        padding: 10px 12px;
    }

    .unique-teammate-name {
        font-size: 14px;
    }

    .unique-teammate-login {
        font-size: 12px;
    }

    .unique-projects-count {
        padding: 4px 8px;
        font-size: 12px;
    }

    .unique-projects-label {
        font-size: 10px;
    }
}

/* Updated Solo Projects Styles */
.projects-list {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

/* Custom scrollbar for projects list */

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

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

.project-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.project-name {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.project-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}


/* Unique Teammates Popup Styles - No conflicts with other components */
.unique-teammates-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unique-teammates-popup {
    background: var(--bg-color-light);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.unique-teammates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.unique-teammates-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.unique-teammates-close-btn {
    background: none;
    border: none;
    color: var(--text-color-secondary);
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.unique-teammates-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.unique-teammates-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.teammates-list h4 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 600;
}

.unique-teammates-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.unique-teammates-list h4 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 600;
}

.unique-teammates-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.unique-teammate-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.unique-teammate-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
}

.unique-teammate-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.unique-teammate-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.unique-teammate-login {
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.8;
}

.unique-teammate-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
}

.unique-projects-count {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.unique-projects-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Old popup styles removed - now using program-popup styles */


.projects-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-summary .summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-color-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.popup-body .projects-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}


.popup-body .project-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.popup-body .project-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 211, 238, 0.3);
}

.popup-body .project-name {
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    font-size: 16px;
}


/* Old popup styles removed - now using program-popup styles */



/* Responsive Design for Popup */
@media screen and (min-width: 1200px) {
    .solo-projects-popup {
        max-width: 550px;
    }

    .unique-teammates-popup {
        max-width: 800px;
    }

    .team-projects-popup {
        max-width: 650px;
    }
}

@media screen and (max-width: 768px) {

    .solo-projects-popup,
    .unique-teammates-popup,
    .team-projects-popup {
        width: 95vw;
        max-width: 95vw;
        margin: 0 2.5vw;
    }

    .popup-content {
        max-height: 85vh;
        padding: 15px 20px 20px 20px;
    }

    .popup-header {
        padding: 15px 20px;
    }

    .popup-header h3 {
        font-size: 1.1rem;
    }

    .popup-body {
        padding: 15px 20px 20px 20px;
    }

    .projects-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .teamwork-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .teammate-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .teammate-projects {
        text-align: left;
        min-width: auto;
        align-self: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .solo-projects-popup {
        max-width: 95%;
        margin: 0 5px;
    }

    .unique-teammates-popup {
        max-width: 95%;
        margin: 0 5px;
    }

    .team-projects-popup {
        max-width: 95%;
        margin: 0 5px;
    }

    .popup-content {
        padding: 10px 15px 15px 15px;
    }

    .popup-header {
        padding: 10px 15px;
    }

    .popup-body {
        padding: 10px 15px 15px 15px;
    }

    .teammate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .teammate-projects {
        align-self: flex-end;
        min-width: auto;
    }
}

.participant-program-stats {
    width: 100%;
}

.participant-circles-row {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    align-items: stretch;
    flex-wrap: wrap;
}

.participant-circles-row.five-cols {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    align-items: stretch;
    flex-wrap: wrap;
}

.participant-circles-row.seven-cols {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Piscine attempt badge shown below the label */
.piscine-badge {
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.piscine-badge.badge-pass {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.piscine-badge.badge-fail {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid #f44336;
    color: #f44336;
}

.piscine-badge.badge-none {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    font-style: italic;
}

.piscine-badge.badge-neutral {
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: rgba(34, 211, 238, 0.85);
    font-weight: 600;
}

/* Reuse look and feel similar to program selector */
.participant-circles-row .program-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.participant-circles-row .program-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.3);
}

.participant-circles-row .stat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4fd, #d1e7dd);
    border: 2px solid rgba(34, 211, 238, 0.3);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
    transition: all 0.3s ease;
}

.participant-circles-row .stat-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
}

.participant-circles-row .stat-circle.passed {
    border-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.participant-circles-row .stat-circle.passed .stat-number {
    color: #2e7d32;
}

.participant-circles-row .stat-circle.passed .stat-unit {
    color: #388e3c;
}

.participant-circles-row .stat-circle.failed {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.participant-circles-row .stat-circle.failed .stat-number {
    color: #c62828;
}

.participant-circles-row .stat-circle.failed .stat-unit {
    color: #d32f2f;
}

.participant-circles-row .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 1;
    position: relative;
}

.participant-circles-row .stat-unit {
    font-size: 12px;
    color: #2d2d2d;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
    z-index: 1;
    position: relative;
    margin-top: -5px;
    font-weight: 600;
}

.participant-circles-row .stat-label {
    font-size: 14px;
    color: var(--text-color-secondary);
    text-align: center;
    font-weight: 500;
}

.participant-circles-row .info-card {
    align-items: stretch;
}

.participant-circles-row .info-card .info-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media screen and (max-width: 900px) {
    .participant-circles-row {
        flex-direction: column;
        gap: 15px;
    }

    .participant-circles-row .program-stat-card {
        min-width: auto;
        padding: 15px;
    }
}

@media screen and (max-width: 700px) {
    .participant-circles-row {
        flex-direction: column;
        gap: 15px;
    }

    .participant-circles-row .program-stat-card {
        min-width: auto;
        padding: 15px;
    }

    .participant-circles-row .stat-circle {
        width: 60px;
        height: 60px;
    }

    .participant-circles-row .stat-number {
        font-size: 20px;
    }

    .participant-circles-row .stat-unit {
        font-size: 10px;
    }
}

@media screen and (max-width: 560px) {
    .participant-circles-row {
        flex-direction: column;
        gap: 12px;
    }

    .participant-circles-row .program-stat-card {
        min-width: auto;
        padding: 12px;
    }

    .participant-circles-row .stat-circle {
        width: 50px;
        height: 50px;
    }

    .participant-circles-row .stat-number {
        font-size: 18px;
    }

    .participant-circles-row .stat-unit {
        font-size: 9px;
    }

    .participant-circles-row .stat-label {
        font-size: 12px;
    }
}

.participant-tables-row {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    flex-wrap: wrap;
}

.mini-table {
    background: var(--bg-color-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
}

.mini-table-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.mini-table-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mini-label {
    opacity: 0.8;
}

.mini-value {
    font-weight: 600;
}

.mini-row.centered {
    justify-content: center;
}

.mini-big {
    font-size: 18px;
    font-weight: 700;
}

.tables-loading,
.tables-error {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Responsive design for participant tables */
@media screen and (max-width: 900px) {
    .participant-tables-row {
        flex-direction: column;
        gap: 12px;
    }

    .mini-table {
        min-width: auto;
        padding: 10px 12px;
    }
}

@media screen and (max-width: 700px) {
    .participant-tables-row {
        flex-direction: column;
        gap: 10px;
    }

    .mini-table {
        padding: 8px 10px;
    }

    .mini-table-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .mini-row {
        gap: 6px;
    }
}

@media screen and (max-width: 560px) {
    .participant-tables-row {
        flex-direction: column;
        gap: 8px;
    }

    .mini-table {
        padding: 6px 8px;
    }

    .mini-table-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .mini-row {
        gap: 4px;
        font-size: 12px;
    }

    .mini-label,
    .mini-value {
        font-size: 11px;
    }
}