﻿:root {
    --primary-color: #08a163; /* Matches TeamPlayer.aspx */
    --primary-hover: #066d44; /* Matches TeamPlayer.aspx */
    --secondary-color: #6c757d; /* Matches Event.aspx and TeamEvent.aspx */
    --secondary-hover: #5a6268; /* Matches Event.aspx and TeamEvent.aspx */
    --table-header-bg: #08a163; /* Matches TeamPlayer.aspx */
    --light-blue: #cfe2ff; /* Matches TeamEvent.aspx inline styles */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

.form-label, .col-form-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Matches TeamEvent.aspx */
}

.form-control {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Matches TeamEvent.aspx */
}

    .form-control:disabled {
        background-color: #f1f3f5; /* Matches TeamEvent.aspx */
        opacity: 1;
        border-color: #ced4da; /* Matches TeamEvent.aspx */
    }

.form-control-lg {
    font-size: 0.9rem; /* Matches Event.aspx */
    padding: 0.5rem 1rem; /* Matches Event.aspx */
}

.form-select, .form-check-label {
    font-size: 0.85rem; /* Matches Event.aspx */
    padding: 0.4rem 0.8rem; /* Matches Event.aspx */
}

.wide-input {
    width: 450px; /* Matches Event.aspx */
}

.state-dropdown {
    width: 175px; /* Matches Event.aspx */
}

.wide-button {
    width: 120px; /* Matches Event.aspx */
}

.table {
    font-size: 0.875rem; /* Matches TeamPlayer.aspx */
}

    .table th {
        font-weight: 500;
    }

    .table th, .table td {
        padding: 0.75rem; /* Matches Bootstrap default for consistency with TeamPlayer.aspx */
        vertical-align: middle; /* Ensures content alignment */
    }

    .table thead {
        background-color: var(--table-header-bg); /* Matches TeamPlayer.aspx */
        color: white; /* Matches TeamPlayer.aspx */
    }

.table-hover tbody tr:hover {
    background-color: rgba(8, 161, 99, 0.1); /* Lightened version of primary color for hover, matches TeamPlayer.aspx */
}

.card {
    border-radius: 0.5rem; /* Matches TeamEvent.aspx */
    border: 1px solid #dee2e6; /* Matches TeamEvent.aspx */
}

.card-header {
    font-size: 1rem;
    font-weight: 500;
}

    .card-header.bg-primary {
        background-color: var(--primary-color) !important; /* Matches Event.aspx */
    }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Matches TeamEvent.aspx */
}

    .btn-primary:hover, .btn-primary.active {
        background-color: var(--primary-hover);
        border-color: var(--primary-hover);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Matches TeamEvent.aspx */
}

    .btn-secondary:hover {
        background-color: var(--secondary-hover);
        border-color: var(--secondary-hover);
    }

.btn-primary.px-4 {
    padding: 0.5rem 1rem; /* Matches Event.aspx */
}

.btn-lg {
    font-size: 1rem; /* Matches Event.aspx */
}

.pagination-ys {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

    .pagination-ys .page-item .page-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        color: var(--primary-color);
        border-radius: 0.25rem;
        margin: 0 0.2rem;
    }

    .pagination-ys .page-item.active .page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: #fff;
    }

    .pagination-ys .page-item.disabled .page-link {
        color: #6c757d;
    }

.text-primary {
    color: var(--primary-color) !important;
}

.text-light-blue {
    color: var(--light-blue) !important; /* Matches TeamEvent.aspx inline style */
}

.alert-info {
    font-size: 0.85rem;
    background-color: #e7f3fe; /* Matches TeamEvent.aspx */
    border-color: #b6d4fe; /* Matches TeamEvent.aspx */
    color: #084298; /* Matches TeamEvent.aspx */
    padding: 1rem; /* Matches TeamEvent.aspx */
    border-radius: 0.5rem; /* Matches TeamEvent.aspx */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Matches TeamEvent.aspx */
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.25rem;
}

.modal-content {
    border-radius: 0.5rem; /* Matches TeamEvent.aspx */
    border: none; /* Matches TeamEvent.aspx */
}

.modal-header {
    border-bottom: 1px solid #dee2e6; /* Matches TeamEvent.aspx */
}

.modal-header-primary {
    background-color: var(--light-blue); /* Matches TeamEvent.aspx */
    color: #000; /* Matches TeamEvent.aspx */
}

.modal-footer {
    border-top: 1px solid #dee2e6; /* Matches TeamEvent.aspx */
}

.sidebar {
    max-height: 80vh; /* Matches TeamEvent.aspx */
    overflow-y: auto; /* Matches TeamEvent.aspx */
}

.datepicker, input[type="time"], input[type="number"] {
    width: 100%; /* Matches Event.aspx */
}

@media (max-width: 991px) {
    .sidebar {
        max-height: none; /* Matches TeamEvent.aspx */
        margin-top: 2rem; /* Matches TeamEvent.aspx */
    }

    .form-control, .form-select, .form-check-label, .col-form-label {
        font-size: 0.85rem; /* Matches TeamEvent.aspx */
        padding: 0.4rem 0.8rem; /* Matches Event.aspx */
    }

    .form-control-lg {
        font-size: 0.9rem; /* Matches Event.aspx */
        height: calc(1.75rem + 2px); /* Matches Event.aspx */
        padding: 0.4rem 0.8rem; /* Matches Event.aspx */
    }

    .wide-input, .state-dropdown, .wide-button {
        width: 100%; /* Matches Event.aspx */
    }

    .table th, .table td {
        font-size: 0.75rem; /* Matches TeamPlayer.aspx */
        padding: 0.2rem; /* Matches TeamPlayer.aspx */
    }

    .btn {
        font-size: 0.9rem; /* Matches TeamEvent.aspx */
        padding: 0.5rem 1rem; /* Matches TeamEvent.aspx */
    }

    .btn-lg {
        font-size: 1rem; /* Matches Event.aspx */
    }

    .pagination-ys .page-link {
        padding: 0.5rem 0.75rem; /* Matches Event.aspx */
    }

    .btn-primary.px-4, .btn-secondary {
        padding: 0.4rem 0.8rem; /* Matches Event.aspx */
        font-size: 0.9rem; /* Matches Event.aspx */
    }

    .alert-info {
        font-size: 0.9rem; /* Matches TeamEvent.aspx */
        padding: 0.75rem; /* Matches TeamEvent.aspx */
    }

    .card {
        margin-bottom: 1rem; /* Matches TeamEvent.aspx */
    }

    .h4.fw-bold {
        font-size: 1.5rem; /* Matches TeamEvent.aspx */
    }

    p.mb-0 {
        font-size: 0.85rem; /* Matches TeamEvent.aspx */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .form-control, .form-select, .form-check-label, .col-form-label {
        font-size: 0.85rem; /* Matches Event.aspx */
        padding: 0.45rem 0.9rem; /* Matches Event.aspx */
    }

    .form-control-lg {
        font-size: 1rem; /* Matches Event.aspx */
        height: calc(2rem + 2px); /* Matches Event.aspx */
        padding: 0.45rem 0.9rem; /* Matches Event.aspx */
    }

    .wide-input {
        width: 400px; /* Matches Event.aspx */
    }

    .state-dropdown {
        width: 150px; /* Matches Event.aspx */
    }

    .wide-button {
        width: 110px; /* Matches Event.aspx */
    }

    .btn-primary.px-4, .btn-secondary {
        padding: 0.45rem 0.9rem; /* Matches Event.aspx */
        font-size: 0.95rem; /* Matches Event.aspx */
    }
}
