/* 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);
}

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

.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: 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;
    }
}

/* Teamwork Status Styles */
.teamwork-section {
    margin-top: 25px;
    padding: 20px;
    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;
    backdrop-filter: blur(10px);
}

.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(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.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;
}

.projects-list::-webkit-scrollbar {
    width: 4px;
}

.projects-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.projects-list::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.3);
    border-radius: 2px;
}

.projects-list::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.5);
}

.project-item {
    display: flex;
    justify-content: space-between;
    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: 500;
    color: var(--text-color);
    flex: 1;
}

.project-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.finished {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.project-status.working {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.project-status.cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* 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: 480px) {
    .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;
    }
}

/* 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 */
.projects-list::-webkit-scrollbar {
    width: 8px;
}

.projects-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.projects-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.projects-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.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;
}

.project-status.finished {
    background: linear-gradient(135deg, var(--success-color), #10b981);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.project-status.failed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Solo Projects Popup */
.solo-projects-popup {
    background: var(--bg-color-light);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.popup-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.popup-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);
}

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

.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;
}

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

.popup-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.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);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.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;
}

.popup-body .projects-list::-webkit-scrollbar {
    width: 4px;
}

.popup-body .projects-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.popup-body .projects-list::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.3);
    border-radius: 2px;
}

.popup-body .projects-list::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.5);
}

.popup-body .project-item {
    display: flex;
    justify-content: space-between;
    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;
}

.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: 500;
    color: var(--text-color);
    flex: 1;
}

.popup-body .project-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-body .project-status.finished {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.popup-body .project-status.working {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.popup-body .project-status.cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Responsive Design for Popup */
@media screen and (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-header h3 {
        font-size: 1.1rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .teamwork-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
