/* Match item styling */
.match-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: background-color 0.2s;
    align-items: center;
}

.match-item:hover {
    background-color: #f3f4f6;
}

.match-date {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
}

.match-opponent {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-team-name {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.match-vs {
    color: #6b7280;
    font-size: 12px;
}

.match-availability {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.availability-in-lineup {
    background-color: #dbeafe;
    color: #1e40af;
}

.availability-yes {
    background-color: #d1fae5;
    color: #065f46;
}

.availability-maybe {
    background-color: #fef3c7;
    color: #92400e;
}

.availability-no {
    background-color: #fee2e2;
    color: #991b1b;
}

.availability-pending {
    background-color: #f3f4f6;
    color: #6b7280;
}

.lineup-position-mobile {
    display: none;
}

.lineup-position-desktop {
    font-size: 11px;
    margin-top: 4px;
    color: #4a5568;
    font-weight: 500;
}

.compliance-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.compliance-item-link {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.compliance-item-link:hover {
    background: #f3f4f6;
}

.compliance-item-label {
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.compliance-item-count {
    min-width: 26px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    background: #fee2e2;
    color: #991b1b;
}

.compliance-item-ok {
    color: #166534;
    font-size: 12px;
    font-weight: 600;
}

.compliance-group-details {
    list-style: none;
    margin: 8px 0 0 16px;
    padding: 0;
    display: grid;
    gap: 6px;
    border-left: 2px solid #d1d5db;
    padding-left: 10px;
}

.compliance-group-detail-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f9fafb;
}

.compliance-group-detail-link:hover {
    background: #f3f4f6;
}

.compliance-group-detail-count {
    font-size: 11px;
    font-weight: 600;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 999px;
    padding: 2px 8px;
}

.compliance-contact-list {
    list-style: none;
    margin: 6px 0 0 10px;
    padding: 0;
    display: grid;
    gap: 4px;
}

.compliance-contact-item {
    font-size: 12px;
    color: #4b5563;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
}

.action-items-grid .action-card-compliance {
    order: -100;
}

/* Event item styling */
.event-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: background-color 0.2s;
    align-items: center;
}

.event-item:hover {
    background-color: #f3f4f6;
}

.event-date {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-title {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.event-type {
    color: #6b7280;
    font-size: 12px;
}

.event-organizer {
    color: #6b7280;
    font-size: 11px;
}

.event-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    background-color: #e0e7ff;
    color: #4c1d95;
}

@media (max-width: 768px) {
    .event-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .event-date {
        text-align: left;
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
    }
    
    .event-details {
        width: 100%;
    }
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .match-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .match-date {
        text-align: left;
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
    }
    
    .match-opponent {
        width: 100%;
    }
    
    .match-team-name,
    .match-vs {
        display: block;
        width: 100%;
    }
    
    .match-opponent a {
        display: block !important;
        width: 100%;
    }
    
    .match-item > div:last-child {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .lineup-position-mobile {
        display: inline;
    }
    
    .lineup-position-desktop {
        display: none;
    }
}

/* Season selector styling */
.season-selector-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-season-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.season-selector-container label {
    color: #ffffff;
    font-size: 0.9rem;
}

.season-dropdown {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27currentColor%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276 9 12 15 18 9%27%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.2rem;
    transition: border-color 0.2s;
    min-width: 180px;
}

.season-dropdown:hover {
    border-color: #9ca3af;
}

.season-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    .season-selector-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        width: auto;
        gap: 0.35rem;
    }
    
    .season-selector-container label {
        font-size: 0.82rem !important;
        color: #ffffff !important;
        margin: 0;
        white-space: nowrap;
    }
    
    .season-dropdown {
        width: auto;
        min-width: 150px;
        max-width: 70vw;
        font-size: 0.86rem;
        padding: 0.38rem 1.7rem 0.38rem 0.6rem;
        background-size: 1rem;
        background-position: right 0.45rem center;
    }
    
    .dashboard-season-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.65rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
}
