﻿.my-programs .pagination {
    padding: 2rem 0 !important
}

.w-px-150 {
    width: 150px !important;
    height: 150px !important;
}

.pga_player-search {
    position: relative;
}

    .pga_player-search input {
        height: 60px;
        text-indent: 25px;
        border: 1px solid var(--pga-border-color);
    }

        .pga_player-search input:focus {
            box-shadow: none;
            border: 1px solid var(--pga-blue);
        }

    .pga_player-search .bi-search {
        position: absolute;
        top: 20px;
        left: 16px;
        width: 32px;
        height: 32px;
    }

    .pga_player-search button {
        position: absolute;
        top: 5px;
        right: 5px;
        height: 50px;
        width: 110px;
    }

.my-programs.admin-modal {
    z-index: 3;
    position: absolute;
    top: 35px;
    left: 15%;
    width: 70%;
    min-height: 35%;
    display: flex;
    backdrop-filter: blur(1px);
    color: #808080;
    background-color: rgba(255,255,255,0.6);
}

    .my-programs.admin-modal .admin-modal__inner {
        background-color: #fff;
        display: flex;
        min-width: 70%;
        min-height: 80px;
        flex-direction: column;
        -webkit-box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.12);
        -moz-box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.12);
        box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.12);
        padding: 15px;
    }

        .my-programs.admin-modal .admin-modal__inner .btn + .btn {
            margin-left: 5px;
        }

        .my-programs.admin-modal .admin-modal__inner .body {
            padding: 10px 30px 0px 30px;
        }

            .my-programs.admin-modal .admin-modal__inner .body label {
                color: #42A3FE
            }

.program-listing__table thead tr {
    background-color: var(--color-3);
    color: #fff;
}

    .program-listing__table thead tr th {
        font-weight: normal;
        color: #fff;
    }

.program-listing__table tr {
    height: 40px;
    vertical-align: middle;
}

    .program-listing__table thead tr th,
    .program-listing__table tr td {
        padding: 15px;
    }

.my-programs .form-label {
    font-weight: bold;
}

.program-listing__edit-icon,
.program-listing__remove-icon {
    cursor: pointer;
}

    .program-listing__edit-icon:hover {
        color: var(--color-1);
    }

    .program-listing__remove-icon:hover {
        color: red;
    }

.program-listing__remove-icon {
    margin-left: 10px;
}

.program-listing__modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.program-listing__modal-inner {
    background-color: #fff;
    border-radius: 8px;
    min-width: 600px;
    box-shadow: 0px 1px 5px 2px rgba(0,0,0,0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.program-listing__modal-body {
    flex: 1;
}

.program-listing__modal-head {
    margin-bottom: 20px;
}

    .program-listing__modal-head h4 {
        font-size: 18px;
    }

.program-listing__modal-footer {
    margin-top: 30px;
}

.program-listing__modal-actions {
    float: right;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .program-listing__modal-actions .btn {
        padding: 5px 15px;
        border-radius: .25rem;
        font-size: 14px;
        line-height: 1.5;
        border: none;
    }

.program-listing__modal .form-group {
    position: relative;
}

.program-listing__modal .form-group-inline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.program-listing__modal .form-label {
    margin-top: 0;
}

.program-listing__modal .form-group-inline .form-group {
    width: 50%;
    margin-top: 0 !important;
}

.program-listing__modal input.form-control {
    height: auto;
    border: 1px solid #ced4da;
    border-radius: .3rem;
    font-size: 14px;
}

.program-listing__modal input,
.program-listing__modal select,
.program-listing__modal textarea {
    font-size: 14px;
}

.program-listing__modal select {
    padding-top: 0.6rem;
    padding-bottom: .7rem;
}

.program-listing__modal .form-group-inline + .form-group-inline,
.program-listing__modal .form-group-inline + .form-group,
.program-listing__modal .form-group + .form-group {
    margin-top: 20px;
}

.program-listing__modal .form-check-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.program-listing__modal .form-check-label {
    line-height: 1;
    margin-top: 0;
    font-weight: normal;
    cursor: pointer;
}

.program-listing__modal-inner.is-submitting {
    pointer-events: none;
}

    .program-listing__modal-inner.is-submitting > * {
        opacity: 0.7;
    }

.program-listing__modal .form-label.required:after {
    content: "*";
    margin-left: 2px;
    color: red;
}

.program-listing__modal .has-error .form-label {
    color: red;
}

.program-listing__modal .has-error .form-control {
    border-color: red;
}

.program-listing__modal .validation-error {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 12px;
    color: red;
    margin-top: 2px;
}

.program-listing__modal .has-error .validation-error {
    visibility: visible;
}

.program-listing__notification {
    color: green;
}

.program-more-info i {
    transition: transform 0.3s ease-in-out;
}

.expanded .fa-chevron-down {
    transform: rotate(180deg);
}

/* Media queries for responsiveness */

/* For small screens, like tablets */
@media (max-width: 768px) {
    .program-listing__modal {
        z-index: 11 !important;
        padding: 10px;
        height: 100%;
    }

    .program-listing__modal-inner {
        min-width: 90%; /* Reduce the modal's width on smaller screens */
        max-width: 600px; /* Set a maximum width for the modal */
        padding: 15px; /* Adjust padding for smaller screens */
        overflow: auto;
        height: 90%;
    }

    .program-listing__modal-head h4 {
        font-size: 16px; /* Adjust heading size for smaller screens */
    }

    .program-listing__modal-actions {
        float: none;
        justify-content: flex-end;
        margin-top: 20px;
    }

    .program-listing__modal .form-group-inline {
        flex-direction: column; /* Stack the form groups vertically on smaller screens */
        gap: 10px;
    }

        .program-listing__modal .form-group-inline .form-group {
            width: 100%; /* Make form fields take up full width on small screens */
        }
}

/* For very small screens, like phones */
@media (max-width: 480px) {
    .program-listing__modal {
        z-index: 11 !important;
        padding: 5px;
        height: 100%;
    }

    .program-listing__modal-inner {
        min-width: 95%; /* Make modal content nearly full-width on phones */
        max-width: 400px; /* Further reduce the modal's width */
        padding: 10px; /* Further reduce padding for phones */
        overflow: auto;
        height: 90%;
    }

    .program-listing__modal-head h4 {
        font-size: 14px; /* Make heading smaller on phones */
    }

    .program-listing__modal-actions .btn {
        font-size: 12px; /* Make button text smaller */
    }

    .program-listing__modal .form-group-inline {
        flex-direction: column; /* Stack form groups vertically */
        gap: 8px; /* Reduce gap between form fields */
    }

        .program-listing__modal .form-group-inline .form-group {
            width: 100%; /* Full width for form groups on small screens */
        }
}