/* Team Registration Pro - Main Styles */

.team-coach-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100% !important;
    width: 100% !important;
}

.team-coach-dashboard .dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h2 {
    margin: 0 0 5px 0;
    font-size: 32px;
}

.welcome-message {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.dashboard-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.team-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card,
.stats-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team-code {
    background: #007cba;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.progress-container {
    margin: 15px 0;
}

.progress-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-weight: bold;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.codes-table thead {
    background: #f5f5f5;
}

.codes-table th,
.codes-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.codes-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
}

.code-used {
    background: #f9f9f9;
}

.status-badge,
.payment-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-used {
    background: #d4edda;
    color: #155724;
}

.status-available {
    background: #fff3cd;
    color: #856404;
}

.status-locked {
    background: #f8d7da;
    color: #721c24;
}

.payment-paid {
    background: #d4edda;
    color: #155724;
}

.payment-partial {
    background: #cce5ff;
    color: #004085;
}

.payment-pending {
    background: #fff3cd;
    color: #856404;
}

.upload-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.step h4 {
    margin: 0 0 10px 0;
}

.payment-alert {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
}

.payment-alert h4 {
    margin-top: 0;
    color: #856404;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007cba;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
}

.text-muted {
    color: #999;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

/* Team Selector Styles */
.team-selector-section {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 30px;
}

.team-selector-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.team-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.team-card h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 18px;
}

.team-card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .team-cards {
        grid-template-columns: 1fr;
    }
    
    .team-coach-dashboard .dashboard-content {
        padding: 0 15px;
    }
    
    .team-info-grid,
    .stats-grid,
    .upload-steps {
        grid-template-columns: 1fr;
    }
    
    .codes-table {
        font-size: 12px;
    }
    
    .codes-table th,
    .codes-table td {
        padding: 8px 5px;
    }
}
