/* My Teams Page Styles */
.fs-my-teams-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.fs-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fs-header-content h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.fs-header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.fs-header-actions .fs-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.fs-header-actions .fs-btn-lg i {
    margin-right: 8px;
}

/* Stats Overview */
.fs-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fs-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.fs-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.fs-stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
}

.fs-stat-content .fs-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.fs-stat-content .fs-stat-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Tabs */
.fs-tabs-container {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.fs-tabs {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 10px;
}

.fs-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
}

.fs-tab.active {
    background: white;
    color: #3366cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fs-tab:hover:not(.active) {
    background: rgba(255,255,255,0.5);
}

.fs-sort-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-weight: 500;
    min-width: 180px;
}

/* Empty State */
.fs-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.fs-empty-icon {
    font-size: 80px;
    color: #6c757d;
    margin-bottom: 20px;
}

.fs-empty-state h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.fs-empty-state p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.fs-empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Teams Grid */
.fs-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.fs-team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.fs-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.fs-team-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fs-team-name-section {
    flex: 1;
}

.fs-team-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-team-id {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

.fs-team-points {
    text-align: right;
    padding-left: 15px;
}

.fs-points-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    line-height: 1;
}

.fs-points-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

/* Match Info */
.fs-match-info {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.fs-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fs-team-badge {
    flex: 1;
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.fs-team-badge .fs-team-name {
    font-weight: 600;
    color: #333;
}

.fs-vs {
    color: #6c757d;
    font-weight: 700;
    padding: 0 10px;
}

.fs-match-details .fs-match-title {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.fs-match-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
}

.fs-match-meta i {
    margin-right: 4px;
}

/* Team Composition */
.fs-team-composition {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.fs-composition-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 600;
}

.fs-composition-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.fs-composition-item {
    text-align: center;
}

.fs-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 12px;
}

.fs-role-wk { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.fs-role-bat { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.fs-role-ar { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.fs-role-bowl { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.fs-role-count {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Captain Section */
.fs-captain-section {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.fs-captain-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fs-captain-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.fs-captain-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fs-captain-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Team Footer */
.fs-team-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fs-team-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fs-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.fs-status-upcoming { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.fs-status-live { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.fs-status-completed { background: rgba(149, 165, 166, 0.1); color: #95a5a6; }

.fs-time-left {
    font-size: 11px;
    opacity: 0.8;
}

.fs-contests-count {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Team Actions */
.fs-team-actions {
    display: flex;
    gap: 8px;
}

.fs-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.fs-view-btn {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.fs-view-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.fs-edit-btn {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
}

.fs-edit-btn:hover {
    background: #d68910;
    border-color: #d68910;
}

.fs-join-btn {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.fs-join-btn:hover {
    background: #27ae60;
    border-color: #27ae60;
}

.fs-disabled-btn {
    background: #ecf0f1;
    color: #95a5a6;
    border-color: #bdc3c7;
    cursor: not-allowed;
}

/* Modal Styles */
.fs-modal-overlay {
    display: none;
    position: absolute !important;
    top: 0;
    left: 591px !important;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}

.fs-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.fs-modal-content {
    max-height: 80vh !important;
    overflow-y: auto;
}

.fs-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fs-modal-title h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.fs-modal-subtitle {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.fs-modal-close {
    color: white;
    font-size: 28px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.fs-modal-body {
    padding: 30px;
}

/* Modal Match Info */
.fs-modal-match-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.fs-match-teams-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.fs-team-large {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.fs-team-large .fs-team-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.fs-vs-large {
    font-size: 24px;
    font-weight: 700;
    color: #6c757d;
    padding: 0 20px;
}

.fs-match-details-large .fs-match-title {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.fs-match-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.fs-match-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Players Section */
.fs-team-players-section {
    margin-bottom: 30px;
}

.fs-section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
    font-weight: 700;
}

.fs-role-section {
    margin-bottom: 25px;
}

.fs-role-section:last-child {
    margin-bottom: 0;
}

.fs-role-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.fs-role-icon {
    font-size: 20px;
}

.fs-players-list {
    display: grid;
    gap: 10px;
}

.fs-player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.fs-player-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.fs-player-item.fs-captain {
    border-left: 4px solid #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.fs-player-item.fs-vice-captain {
    border-left: 4px solid #C0C0C0;
    background: rgba(192, 192, 192, 0.05);
}

.fs-player-info {
    flex: 1;
}

.fs-player-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-captain-badge, .fs-vice-captain-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.fs-captain-badge {
    background: #FFD700;
    color: #333;
}

.fs-vice-captain-badge {
    background: #C0C0C0;
    color: #333;
}

.fs-player-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.fs-player-team {
    font-weight: 600;
    color: #3498db;
}

.fs-player-credits {
    font-weight: 600;
    color: #e74c3c;
}

.fs-player-points {
    text-align: right;
    min-width: 100px;
}

.fs-points-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 3px;
}

.fs-points-value {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

/* Team Summary */
.fs-team-summary-modal {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.fs-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.fs-summary-item {
    text-align: center;
}

.fs-summary-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.fs-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Modal Actions */
.fs-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.fs-modal-actions .fs-btn {
    /*min-width: 150px;*/
}

/* Responsive Design */
@media (max-width: 768px) {
    .fs-page-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .fs-teams-grid {
        grid-template-columns: 1fr;
    }
    
    .fs-captain-row {
        grid-template-columns: 1fr;
    }
    
    .fs-match-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .fs-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .fs-match-teams-large {
        flex-direction: column;
        gap: 10px;
    }
    
    .fs-team-large {
        width: 100%;
    }
    
    .fs-vs-large {
        padding: 10px 0;
    }
    
    .fs-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fs-modal-actions {
        flex-direction: column;
    }
    
    .fs-modal-actions .fs-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fs-stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fs-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .fs-team-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .fs-team-actions {
        justify-content: center;
    }
}