.page-new-team__wrapper {
    width: 100%;
    max-width: calc(60% - 10px);
}

.new-team {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.new-team form {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Form container styling */
.page-new-team__form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 18px;
    margin-bottom: 40px;
    width: 100%;
}

.page-new-team__info {
    width: 100%;
    max-width: calc(40% - 10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0;
    border-radius: 8px;
    background-color: #fff;
    height: fit-content;
}

.page-teams--single .page-new-team__info,
.page-teams--single .page-new-team__wrapper {
    max-width: 100%;
}

/* Media Metabox Styling */
#anwp-fl-media-metabox {
    width: 100%;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.anwp-box-header {
    background-color: #ef622c;
    font-weight: 600;
    padding: 12px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 16px;
    color: white !important;
    padding: 12px 15px !important;
}

.anwp-border {
    border: 1px solid #e2e8f0;
}

.anwp-border-gray-500 {
    border-color: #e2e8f0;
}

.anwp-border-bottom {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.anwp-text-gray-700 {
    color: #4a5568;
}

.anwp-font-semibold {
    font-weight: 600;
}

.anwp-fill-current {
    fill: currentColor;
}

.anwp-icon {
    display: inline-block;
    vertical-align: middle;
}

.anwp-icon--s16 {
    width: 16px;
    height: 16px;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.cmb-row {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cmb-th {
    width: 200px;
    padding-right: 20px;
}

.cmb-td {
    flex: 1;
}

.cmb2-upload-button {
    margin-right: 10px;
    padding: 5px 10px;
    cursor: pointer;
}

.cmb2-media-status {
    margin-top: 10px;
}

.cmb2-media-status .img-status {
    position: relative;
    display: inline-block;
}

.cmb2-media-status img {
    max-width: 150px;
    height: auto;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cmb2-remove-file-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.cmb-attach-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cmb-attach-list li {
    margin-bottom: 10px;
}

.cmb2-textarea-small {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Info panel styling */
.info-header {
    background-color: #ef622c;
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 16px;
}

.info-field {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.info-label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.info-input input {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #e9e9e9;
    border-radius: 4px;
}

.info-input input:focus {
    outline: none;
    background-color: #e2e2e2;
}

/* Section styling */
.page-new-team__form .row {
    margin-left: -15px;
    margin-right: -15px;
}

.page-new-team__form .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Form group styling */
.page-new-team__form-group {
    margin-bottom: 25px;
}

.page-new-team__form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.4rem;
}

.page-new-team__form-group input[type="text"],
.page-new-team__form-group input[type="url"],
.page-new-team__form-group select,
.page-new-team__form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.page-new-team__form-group input[type="text"]:focus,
.page-new-team__form-group input[type="url"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
    background-color: #fff;
}

.page-new-team__form-group .form-text {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    display: block;
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.checkbox-label {
    margin-left: 8px;
    font-weight: normal;
    color: #333;
}

/* Make Select2 match the form style */
.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fcfcfc;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0073aa;
}

/* Custom color picker styling */
.color-picker-container {
    display: flex;
    align-items: center;
}

.color-input {
    flex: 1;
    margin-right: 10px;
}

.color-preview {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    transition: transform 0.2s ease;
}

.color-preview:hover {
    transform: scale(1.1);
}

.color-preview.has-color {
    background-image: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-clear-btn {
    margin-left: 10px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 13px;
}

.color-clear-btn:hover {
    background: #f0f0f0;
}

/* WordPress Media Uploader styling */
.wp-media-buttons {
    margin-bottom: 15px;
}

.wp-media-buttons .button {
    padding: 0 15px 1px;
    font-size: 14px;
    height: 36px;
    line-height: 34px;
    background: #f7f7f7;
    border: 1px solid #ccc;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wp-media-buttons .button:hover {
    background: #fafafa;
    border-color: #999;
    color: #23282d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wp-media-buttons-icon:before {
    content: "\f104";
    font-family: dashicons;
    vertical-align: middle;
    margin-right: 5px;
    font-size: 16px;
}

.logo-preview-wrapper {
    margin-top: 15px;
    position: relative;
}

.logo-preview {
    max-width: 150px;
    min-height: 70px;
    border: 1px dashed #ddd;
    padding: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.logo-preview:hover {
    border-color: #bbb;
    background-color: #f5f5f5;
}

.logo-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-preview-wrapper.has-logo {
    display: flex;
    align-items: center;
}

.remove-logo-button {
    margin-left: 15px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    cursor: pointer;
    color: #bc0000;
    transition: all 0.2s ease;
    font-size: 13px;
}

.remove-logo-button:hover {
    background: #f0f0f0;
    border-color: #ef622c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Submit button */
.btn.btn-primary {
    background-color: #ef622c;
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn.btn-primary:hover {
    background-color: #005d8c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Success and error messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    width: 100%;
}

.alert-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.alert-danger {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Form titles */
.page-new-team__form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}


.team-edit-header__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-edit-header__icon-link {
    display: flex;
    border-radius: .4rem;
    background: #3A3A44;
    width: 100%;
    max-width: calc(33.33% - 4.5rem);
    flex-direction: column;
    text-decoration: none;
    margin-bottom: 1rem;
    box-shadow: .2rem 0.2rem 1rem 0px #0000006b;
    transition: all .3s ease;
    position: relative;
}

.team-edit-header__icon-link:hover {
    background: #F15B2E;
}

.team-edit-header__icon-link.is-active {
    background: #F15B2E;
}

.team-edit-header__icon-link > span {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    padding: .7rem 0;
    display: flex;
    border-top: .1rem solid #FF9676;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.team-edit__image img {
    width: 3rem;
    height: 3rem;
}

.team-edit__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}
.error-message {
    color: #dc3545;
    font-size: 1.4rem;
    margin-top: .5rem;
    display: block;

}

.teams-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.page-new-team__form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
@media (max-width: 1100px) {
    .team-edit-header__icon-link {
        max-width: calc(33.33% - 1rem);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .new-team {
        flex-direction: column;
        gap: 20px;
    }

    .page-new-team__form,
    .page-new-team__info {
        max-width: 100%;
    }
    .team-edit__image img {
        width: 2rem;
        height: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-new-team__form-group label {
        font-size: 1.6rem;
    }
    .info-input input {
        font-size: 1.4rem;
    }
    .page-new-team__form {
        padding: 20px;
    }
    .page-new-team__form-group input[type="text"], .page-new-team__form-group input[type="url"], .page-new-team__form-group select, .page-new-team__form-group input[type="file"] {
        font-size: 1.4rem;
    }
    .page-new-team__form-group {
        margin-bottom: 20px;
    }

    .btn.btn-primary {
        width: 100%;
    }

    .single-club .single-club__right {
        flex: 1;
        max-width: 100%;
    }

    .team-edit-header__icon-link {
        max-width: calc(33.33% - 1rem);
    }

    .team-edit__image img {
        width: 2rem;
        height: 2rem;
    }
}

/* Media Upload Interface Styling */
.team-media__container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Media Tabs */
.media-tabs__header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.media-tabs__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
    
.media-tabs__tab:hover {
    color: #ef622c;
    background: rgba(239, 98, 44, 0.05);
}

.media-tabs__tab--active {
    color: #ef622c;
    background: #fff;
    border-bottom-color: #ef622c;
}

.media-tabs__icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Media Tab Content */
.media-tabs__content {
    display: none;
    padding: 20px;
}

.media-tabs__content--active {
    display: block;
}

/* Media Upload Grid */
.media-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.media-upload-item__label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Media Upload Box */
.media-upload-box {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.page-body--edit {
    flex-wrap: wrap;
}
.page-body--edit .w-full {
    width: 100%;
}
.media-upload-box:hover {
    border-color: #ef622c;
    background: #fef7f4;
}

.media-upload-box--has-image {
    border-style: solid;
    border-color: #10b981;
    background: #f0fdf4;
    padding: 0 20px;
}

.media-upload-box__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 15px 0;
    min-height: 11.5rem;
}

.media-upload-box__icon {
    width: 48px;
    height: 42px;
    color: #9ca3af;
    opacity: 0.7;
}

.media-upload-box__preview {
    max-width: 100%;
    max-height: 8rem;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-upload-box__preview:hover {
    opacity: 0.8;
    transform: scale(0.98);
}

.media-upload-box--has-image .media-upload-box__preview {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-upload-box--has-image .media-upload-box__preview:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.media-upload-box__button {
    background: #ef622c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0 10px;
}

.media-upload-box__button:hover {
    background: #d55527;
    transform: translateY(-1px);
}

/* Team Uniforms Section */
.team-uniforms {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.team-uniforms__title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

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

.uniform-upload__label {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

/* Club Shirt Tab Content */
.club-shirt-content {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.club-shirt-content p {
    font-size: 1.4rem;
    margin: 0;
}
.team-invite {
    padding: 2rem;
    font-size: 1.6rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .media-upload-grid,
    .team-uniforms__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .media-tabs__header {
        flex-direction: column;
    }
    
    .media-tabs__tab {
        justify-content: center;
        padding: 15px;
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .media-tabs__tab--active {
        border-right-color: #ef622c;
        border-bottom-color: transparent;
    }
    
    .media-tabs__content {
        padding: 15px;
    }
    
    .media-upload-box {
        min-height: 100px;
    }
    
    .team-uniforms__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .media-tabs__tab {
        font-size: 1.3rem;
        padding: 12px;
    }
    
    .media-upload-item__label,
    .uniform-upload__label {
        font-size: 1.3rem;
    }
    
    .media-upload-box__button {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
}

/* Modal scroll prevention */
.modal-overlay.select2-modal-open {
    overflow: hidden !important;
}

.modal-overlay.select2-modal-open .modal-content {
    overflow: visible !important;
}
.choices__list--dropdown, .choices__list[aria-expanded] {
    top: 0;
}
.choices__input {
    height: 5rem;
}

/* Player Modal Styles - for compatibility with modal-add-player.php */
.club-users-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.club-users-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-users-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    min-width: 400px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}