/* Tato CSS obsahuje všechny styly pro prohlížeč týmů */

/* Hlavní kontejner stránky */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Stylování detailu vybraného týmu */
.selected-team-detail {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
}

.no-team-selected {
    color: #888;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 60px;
}

/* Stav týmů v detailu */
.selected-team-detail.team-ready {
    background-color: #f8f9fa;
    border-left: 5px solid #ddd;
}

.selected-team-detail.team-selected {
    background-color: rgba(52, 152, 219, 0.05);
    border-left: 5px solid #3498db;
}

.selected-team-detail.team-running {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 5px solid #3498db;
}

.selected-team-detail.team-waiting {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 5px solid #f39c12;
}

.selected-team-detail.team-finished {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 5px solid #2ecc71;
}

/* Styly pro karty týmů a jejich kontejner */
.teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Karta týmu */
.team-card {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    border-left: 3px solid #ddd;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Stav týmů v kartách */
.team-card.team-ready {
    border-left: 3px solid #ddd;
    background-color: white;
}

.team-card.team-selected {
    border-left: 3px solid #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.team-card.team-running {
    border-left: 3px solid #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.team-card.team-waiting {
    border-left: 3px solid #f39c12;
    background-color: rgba(243, 156, 18, 0.1);
}

.team-card.team-finished {
    border-left: 3px solid #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
}

/* Název týmu */
.team-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

/* Název vozítka */
.vehicle-name {
    font-size: 0.95rem;
    color: #3498db;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Údaje o týmu */
.team-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #555;
}

.team-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-info-item i {
    color: #3498db;
    width: 16px;
}

/* Status týmu */
.team-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.team-status.status-ready {
    background-color: #eee;
    color: #555;
}

.team-status.status-selected {
    background-color: #3498db;
    color: white;
}

.team-status.status-running {
    background-color: #3498db;
    color: white;
    animation: pulse 1.5s infinite;
}

.team-status.status-waiting {
    background-color: #f39c12;
    color: white;
}

.team-status.status-finished {
    background-color: #2ecc71;
    color: white;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Detail týmu - uvnitř velké karty */
.team-detail {
    display: flex;
    flex-direction: column;
}

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

.team-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.team-category {
    font-size: 1rem;
    color: #777;
    margin-top: 0.3rem;
}

.team-basic-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.info-label {
    font-weight: bold;
    color: #666;
    display: inline-block;
    min-width: 120px;
}

/* Detail týmu - stav */
.detail-status {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.detail-status.status-ready {
    background-color: #eee;
    color: #555;
}

.detail-status.status-selected {
    background-color: #3498db;
    color: white;
}

.detail-status.status-running {
    background-color: #3498db;
    color: white;
    animation: pulse 1.5s infinite;
}

.detail-status.status-waiting {
    background-color: #f39c12;
    color: white;
}

.detail-status.status-finished {
    background-color: #2ecc71;
    color: white;
}

/* Zpráva, když nejsou nalezeny žádné týmy */
.no-teams {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #777;
    font-size: 1.1rem;
}

/* Indikátor načítání */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #777;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #ddd;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Navigační tlačítka */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    padding: 0.7rem 1.2rem;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.action-btn {
    padding: 0.7rem 1.2rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.action-btn:hover {
    background-color: #2980b9;
}

/* Event log */
.log {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    color: #555;
}