/* Employee Cards Styles */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .employee-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .employee-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .employee-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.employee-card {
    background: rgba(0, 0, 0, 0.46);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.employee-card::before {
    content: '👁️ Click to view details';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 191, 255, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.employee-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #00bfff;
    box-shadow: 0 12px 32px rgba(0, 191, 255, 0.3);
}

.employee-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 191, 255, 0.4);
}

.employee-image {
    margin-bottom: 20px;
    text-align: center;
}

.employee-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00bfff;
}

.no-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #00bfff;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00bfff;
    margin: 0 auto;
}

.employee-info {
    text-align: center;
}

.employee-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #f7f7f7;
}

.employee-position {
    color: #00bfff;
    font-weight: 500;
    margin-bottom: 5px;
}

.employee-role {
    color: #888888;
    font-weight: 400;
    margin-bottom: 5px;
    font-style: italic;
}

.employee-location {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-item a {
    color: #00bfff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.projects-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.projects-section h4 {
    color: #00bfff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.toggle-projects {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
    border: 1px solid #00bfff;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toggle-projects:hover {
    background: rgba(0, 191, 255, 0.2);
}

.projects-list {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #888888;
}

.project-item {
    margin-bottom: 12px;
    padding: 8px 0;
}

.project-item strong {
    color: #00bfff;
    display: block;
    margin-bottom: 4px;
}

.project-item p {
    color: #888888;
    font-size: 0.85rem;
    margin: 0;
}

/* Animation for search results */
.employee-card.hidden {
    display: none;
}

.employee-card.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Additional employee info styles */
.employee-department {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.employee-years {
    color: #888888;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 10px;
}

.bio-section {
    margin: 10px 0;
}

.employee-bio {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.education-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.education-section h4 {
    color: #00bfff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.education-item {
    color: #00bfff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Licenses section */
.licenses-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.licenses-section h4 {
    color: #00bfff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.license-item {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 5px 0;
    font-weight: 500;
}

/* Memberships section */
.memberships-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.memberships-section h4 {
    color: #00bfff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.membership-item {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 5px 0;
    font-weight: 500;
}

.education-specialty {
    color: #888888;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-style: italic;
}

.project-client, .project-role {
    color: #888888;
    font-size: 0.85rem;
    margin: 2px 0;
}

.employee-card .project-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
}

.employee-card .project-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.employee-card .project-link:visited {
    color: #ffffff !important;
}

.employee-card .project-link:active {
    color: #ffffff !important;
}

.employee-card .project-link:focus {
    color: #ffffff !important;
}

/* Computer specifications section */
.computer-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.computer-section h4 {
    color: #00bfff;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.computer-section h4 .computer-icon {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/* Individual Computer Data section styling */
.computer-section.individual-computer-data {
    border: 1px solid #00ff88;
    padding: 12px;
    background: rgba(0, 255, 136, 0.15);
    border-radius: 6px;
    margin: 10px 0;
}

.computer-section.individual-computer-data h4 {
    color: #00ff88;
}

/* Static GPU Master List section styling */
.computer-section.static-gpu-master-list {
    border: 1px solid #ff6b35;
    padding: 12px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 6px;
    margin: 10px 0;
}

.computer-section.static-gpu-master-list h4 {
    color: #ff6b35;
}

/* Data source badges */
.data-source-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.data-source-badge.confidential {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.data-source-badge.static {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.data-source-badge.software {
    background: rgba(221, 160, 221, 0.2);
    color: #dda0dd;
    border: 1px solid rgba(221, 160, 221, 0.3);
}

.computer-details {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 3px solid #00bfff;
}

/* Computer details within colored sections */
.computer-section.individual-computer-data .computer-details {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid #00ff88;
}

.computer-section.static-gpu-master-list .computer-details {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid #ff6b35;
}

.computer-name {
    color: #00bfff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
}

.computer-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.computer-item {
    color: #cccccc;
    font-size: 0.85rem;
    margin: 2px 0;
}

.computer-item strong {
    color: #888888;
    margin-right: 8px;
}

/* Contact Icons */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.email-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300bfff"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.phone-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300bfff"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

.chat-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300bfff"><path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>');
}

/* Source indicators for employee data origin */
.source-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    cursor: help;
    vertical-align: middle;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.source-indicator:hover {
    opacity: 0.7;
}

/* Individual Employee Files - Blue dot */
.source-indicator.individual-employee {
    color: #00bfff; /* Blue dot for individual employee files */
}

/* Individual Computer Data - Green dot (Live Hardware Data) */
.source-indicator.individual-computer {
    color: #28a745; /* Green dot for individual computer data (live hardware data) */
}

/* GPU Master List - Orange dot (Static Hardware Data) */
.source-indicator.gpu-master {
    color: #ff8c00; /* Orange dot for GPU master list (static hardware data) */
}

/* Software Requirements - Purple dot */
.source-indicator.software-requirements {
    color: #dda0dd; /* Purple dot for software requirements */
}

/* Unknown source - Gray dot */
.source-indicator.unknown-source {
    color: #888888; /* Gray dot for unknown sources */
}

/* Software Requirements section - styled like computer specifications */
.software-requirements-section {
    border: 1px solid #dda0dd;
    padding: 12px;
    background: rgba(221, 160, 221, 0.15);
    border-radius: 6px;
    margin: 10px 0;
}

.software-requirements-section h4 {
    color: #dda0dd;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.software-requirements-section h4 .computer-icon {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.software-details {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 3px solid #dda0dd;
}

.software-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.software-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: help;
}

.software-badge-enabled {
    background: rgba(128, 0, 128, 0.3);
    color: #dda0dd;
    border-color: rgba(128, 0, 128, 0.5);
}

.software-badge-enabled:hover {
    background: rgba(128, 0, 128, 0.4);
    border-color: rgba(128, 0, 128, 0.7);
    transform: translateY(-1px);
}

.software-badge-disabled {
    background: rgba(128, 0, 128, 0.1);
    color: #888888;
    border-color: rgba(128, 0, 128, 0.2);
}

.software-badge-disabled:hover {
    background: rgba(128, 0, 128, 0.15);
    border-color: rgba(128, 0, 128, 0.3);
}