/* Team SSH Terminal Styles */
.ssh-terminal-window {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.btn-term {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-term.close { background: #ff5f56; }
.btn-term.minimize { background: #ffbd2e; }
.btn-term.maximize { background: #27c93f; }

.terminal-title {
    color: #888;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
}

.terminal-meta {
    font-size: 0.75rem;
    color: #666;
}

.ssh-status {
    color: #27c93f;
    border: 1px solid rgba(39, 201, 63, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(39, 201, 63, 0.1);
}

.team-console-body {
    padding: 20px;
    min-height: 400px;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #0d0d0d;
}

.console-output {
    margin-bottom: 20px;
}

.console-output .line {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.prompt {
    color: #27c93f;
    font-weight: bold;
    margin-right: 8px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: #27c93f;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

/* Progress Bar */
.team-progress-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.team-progress-container.hidden {
    display: none;
}

.progress-label {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

.progress-track {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #27c93f;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(39, 201, 63, 0.5);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-grid.hidden {
    display: none;
}

/* Team Card SSH Style */
.team-ssh-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0; /* Handled by animation */
}

.team-ssh-card:hover {
    border-color: #444;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.team-card-header {
    background: #1a1a1a;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #333;
}

.team-avatar {
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #27c93f;
    border: 1px solid #333;
}

.team-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.team-role {
    color: #27c93f;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card-body {
    padding: 20px;
}

.team-card-body p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.ssh-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 0;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ssh-btn:hover {
    border-color: #27c93f;
    color: #27c93f;
    background: rgba(39, 201, 63, 0.1);
}

.ssh-btn .icon {
    font-size: 1rem;
}

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

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
