@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Karla', sans-serif;
}

a {
    cursor: pointer;
}

img.app-icon {
    border-radius: 50%;
}

body {
    overflow-x: hidden;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

input, textarea {
    padding: 3px;
}

ul {
    list-style-type: none;
    padding: 0 !important;
    border-radius: 2px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-size: 16px;
    background: white url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 0px center;
    border: 1px solid gray;
    color: black;
    border-radius: 2px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 25px;
    padding-left: 5px;
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 20px;
    background-color: white;
    border: 1px solid gray;
    border-radius: 2px;
}

main {
    margin-left: var(--aside-width);
    transition: 400ms;
    overflow: auto;
    width: calc(100vw - var(--aside-width));
}

:root {
    --dark-blue: #3F83BF;
    --blue: #71A8D9;
    --green: #8DC63F;
    --dark-green: #006838;
    --light-green: #B9BF04;
    --header-height: 50px;
    --aside-width: 240px;
    --aside-width-collapsed: 10px;
    --border-radius: 20px;
    --background-color: white;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
}

#loadingimage {
    position: fixed;
    z-index: 999;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    #loadingimage > img {
        width: 100px;
    }

.btn {
    background-color: var(--dark-green);
    border-radius: 100px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 450ms;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
}

    .btn:hover {
        box-shadow: rgba(185, 191, 4, 0.35) 0 -25px 18px -14px inset, rgba(185, 191, 4, 0.25) 0 1px 2px, rgba(185, 191, 4, 0.25) 0 2px 4px, rgba(185, 191, 4, 0.25) 0 4px 8px, rgba(185, 191, 4, 0.25) 0 8px 16px, rgba(185, 191, 4, 0.25) 0 16px 32px;
    }

a.btn {
    font-size: small;
}


.backBtn {
    background-color: var(--green);
    border-radius: 20px;
    border-radius: 10px;
    color: white;
    padding: 10px 20px;
    transition: 200ms;
    position: absolute;
    top: 10px;
    left: 10px;
}

    .backBtn:hover {
        box-shadow: 0 0 5px var(--green);
    }




.removeBtn {
    background: none;
    border-radius: 100px;
    color: red;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
}

    .removeBtn:hover {
        font-weight: bold;
    }

.saveBtn {
    background: none;
    border-radius: 100px;
    color: green;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
}

    .saveBtn:hover {
        font-weight: bold;
    }

.editBtn {
    background: none;
    border-radius: 100px;
    color: blue;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
}

    .editBtn:hover {
        font-weight: bold;
    }

input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border: 2px solid #555;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}

    input[type="radio"]:checked::before {
        content: "";
        display: block;
        width: 50%;
        height: 50%;
        background: #007bff;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }




.title-h1 {
    color: var(--green);
}

.radioLabel {
    display: block !important;
}

.select2-container--default .select2-selection--multiple {
    border-radius: 0px !important;
}

#seasonLabel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: var(--dark-green);
}

    #seasonLabel > select {
        border-radius: 5px;
        border: 1px solid var(--green);
    }


/*#region Page Header*/
.pageHeaderContainer {
    text-align: center;
    background-color: var(--dark-blue);
    display: flex;
    align-items: center;
}

    .pageHeaderContainer > h1 {
        color: white;
        text-decoration: underline;
        width: 90%;
        text-align: center;
    }

    .pageHeaderContainer > a {
        background: var(--light-green);
        color: white;
        padding: 1% 2%;
    }

        .pageHeaderContainer > a:hover {
            box-shadow: 0px 0px 5px 0px var(--dark-green);
        }

@media (max-width: 450px) {
    .pageHeaderContainer > a {
        padding: 2% 2%;
    }
}
/*#endregion*/
/*#region Header*/
#NavButton {
    cursor: pointer;
    transition: 300ms;
    margin-right: 15px;
    font-size: 20px;
    padding: 8px;
    border-radius: 5px;
    background: var(--light-green);
    color: white;
}

    #NavButton:hover {
        background: white;
        color: var(--dark-green);
    }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fbfbfb;
    height: var(--header-height);
    width: calc(100vw - var(--aside-width));
    margin-left: auto;
    transition: 400ms;
    box-shadow: var(--box-shadow);
}

    header > div:first-of-type {
        width: 100%;
        display: flex;
        gap: 20px;
        align-items: center;
    }

        header > div:first-of-type > button {
            border: none;
            background-color: #ffffff00;
            cursor: pointer;
        }

            header > div:first-of-type > button > i {
                font-size: x-large;
                color: var(--green);
            }

    header > div:last-of-type {
        display: flex;
        align-items: center;
        gap: 30px;
        justify-content: end;
        width: 100%;
    }

    header > div > a {
        /* position: absolute;
            right: 25px;*/
        color: var(--dark-blue);
        text-decoration: none;
    }

        header > div > a:nth-of-type(2) {
        }

        header > div > a:nth-of-type(2) {
            position: relative;
            display: inline-block;
        }

            header > div > a:nth-of-type(2) .badge {
                position: absolute;
                top: -5px;
                right: -5px;
                background: red;
                color: white;
                font-size: 12px;
                width: 16px;
                height: 16px;
                text-align: center;
                border-radius: 50%;
                line-height: 16px;
                font-weight: bold;
            }

        header > div > a > i {
            font-size: x-large;
        }

        header > div > a:hover {
            color: var(--light-green) !important;
        }

    header > div > img {
        width: 30%;
    }

@media (max-width: 900px) {
    header > div:first-of-type > a > img {
        display: none;
    }

    header > div:first-of-type > a:first-of-type {
        width: 70%;
    }

    header > div:first-of-type > a:last-of-type {
        right: 5px;
    }
}
/*#endregion */
/*#region Aside*/
#collepseAside i {
    transition: transform 0.5s ease;
    transform: scaleX(-1);
}

    #collepseAside i.mirrored {
        transform: scaleX(1);
    }

#collepseAsideMin {
    display: none;
    border: none;
    background-color: #ffffff00;
    cursor: pointer;
}

    #collepseAsideMin i {
        font-size: x-large;
        color: var(--green);
        transition: transform 0.5s ease;
        transform: scaleX(-1);
    }

        #collepseAsideMin i.mirrored {
            transform: scaleX(1);
        }


aside.closed {
    width: 0;
}

aside {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--aside-width);
    height: 100vh;
    z-index: 98;
    background: var(--dark-green);
    color: white;
    margin: 0;
    transition: width 0.4s;
    overflow: hidden;
}

    aside a span i,
    aside a i:first-child {
        margin-right: 8px;
        width: 16px;
        height: 16px;
    }

    aside ul {
        display: flex;
        flex-direction: column;
    }

    aside li ul {
        display: none;
    }

    aside .accordionSide > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    aside li > a {
        display: flex;
        align-items: center;
        padding: 11px 20px;
        color: white;
        text-decoration: none;
        white-space: nowrap;
        font-size: 14px;
        transition: 200ms;
    }

        aside li > a:not(.activeNavItem):hover {
            background: var(--green);
            padding-left: 30px;
        }

        aside li > a > i {
            transition: transform 300ms;
        }


    aside > nav > div {
        text-align: center;
        height: var(--header-height);
        border-right: 1px solid var(--light-green);
        background: #fbfbfb;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        aside > nav > div > img {
            max-width: 100%;
            max-height: 90%;
            object-fit: contain;
        }


    aside > nav > ul > li > ul > li > a {
        padding-left: 35px;
    }

        aside > nav > ul > li > ul > li > a:hover {
            padding-left: 45px;
        }


    aside > nav > ul > li > ul > li > ul > li > a {
        display: block;
        padding-left: 55px;
    }

        aside > nav > ul > li > ul > li > ul > li > a:hover {
            padding-left: 65px;
        }

    aside > nav > ul > li:hover {
        cursor: pointer;
    }

.activeNavItem {
    background: var(--green);
    padding-left: 10px;
}

@media (max-width: 900px) {
    :root {
        --aside-width: 0px;
    }
}
/*#endregion */
/*#region CustomTable */

.customTable > thead > tr > th {
    border-bottom: 2px solid #007BFF;
    background-color: #e7e7e7;
    text-align: center;
}
/*#endregion */
/*#region DataTable*/
.dataTable {
    padding-top: 10px;
    width: 100% !important;
}

    .dataTable th, .dataTable td {
        border: 0.1px solid #ddd;
    }

    .dataTable > tbody > tr > td {
        text-align: center;
    }

    .dataTable > tbody tr:nth-child(odd) {
        background-color: #ffffff; /* Açık gri */
    }

    .dataTable > tbody tr:nth-child(even) {
        background-color: #f8f8f8; /* Beyaz */
    }

.dataTables_filter > label {
    display: flex;
    align-items: center;
    margin-top: -12px;
}

    .dataTables_filter > label > input {
        border-radius: 10px !important;
    }

.dataTables_length > label {
    display: grid;
    text-align: center;
    align-items: center;
    justify-content: unset;
    grid-gap: 3px;
}

    .dataTables_length > label > select {
        border-radius: 10px !important;
    }

.filters .TableProcessColumn {
    display: none;
}

.paginate_button {
    border-width: 2px !important;
    border-color: var(--dark-blue) !important;
    border-radius: 5px !important;
    background: var(--blue);
    font-size: small;
    font-weight: 600 !important;
    margin-top: 10px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}


    .paginate_button.previous, .paginate_button.next {
        width: unset;
    }

    .paginate_button:hover {
        color: black !important;
        border-color: var(--dark-blue);
        border-radius: 5px !important;
        background: var(--blue) !important;
        font-size: small !important;
        color: white !important;
    }

    .paginate_button.current {
        background: var(--dark-blue) !important;
        border-color: var(--dark-blue) !important;
    }

.dataTables_filter {
    padding-top: 10px;
}

@media (max-width: 900px) {
    table.dataTable th, table.dataTable td {
        box-sizing: content-box;
        max-height: none !important;
    }
}

/*#endregion*/
/*#region Notification*/
:is(#Notification, #JsNotification) {
    position: fixed;
    bottom: 50px;
    right: -2000px;
    z-index: 100;
    min-width: 350px;
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
    opacity: 0.95;
    transition: 700ms ease;
    background: var(--green);
    color: white;
}

    :is(#Notification, #JsNotification) > i {
        border-radius: 50%;
        font-size: 40px;
        background: var(--green);
    }

    :is(#Notification, #JsNotification) p {
        margin: 0;
    }

    :is(#Notification, #JsNotification) b {
        color: darkslategray;
    }
/*#endregion*/
/*#region Popup*/
.popup .form-group {
    padding: 15px 0px;
}

    .popup .form-group > label > input {
        margin-bottom: 0;
        height: max-content;
    }

.popup {
    display: none;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: #00000080;
    z-index: 99;
    position: fixed;
}

    .popup > form {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: max(400px,50%);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: var(--green);
        border-radius: 8px;
        max-height: 97vh;
        overflow-y: auto;
    }

        .popup > form .btn {
            background-color: var(--blue);
            margin: auto;
        }

        .popup > form > div {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

            .popup > form > div > div {
                display: flex;
                justify-content: space-between;
                gap: 10px;
            }

                .popup > form > div > div > input {
                    width: 100%;
                }

                .popup > form > div > div > i {
                    cursor: pointer;
                }

    .popup label {
        color: black;
        display: flex;
        align-items: center;
    }



    .popup :is(select,textarea,input) {
        height: 30px;
        border-radius: 3px;
        margin-bottom: 20px;
        outline: 0;
        border: 0;
    }


#PopUpNewHardwareTitle button {
    margin: auto;
}



.popup input[type=file] {
    color: white;
    padding: 0;
}

.popup textarea {
    height: unset !important;
    margin-bottom: 0px !important;
}

.popup :is(select,input):focus {
    font-weight: bold;
}

.popup input[type=checkbox] {
    display: inline;
    width: 15px;
    outline: none;
    margin: 0 10px;
}

    .popup input[type=checkbox]:after {
        height: 23px;
        width: 23px;
    }

    .popup input[type=checkbox]:checked:after {
        background: gray;
        font-size: 13px;
    }

    .popup input[type=checkbox]:hover:after {
        background: #f1891836;
        height: 23px;
        width: 23px;
    }
/*#endregion*/
/*#region Remove popup*/
.removePopup > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: var(--dark-blue);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    border-radius: 8px;
}

    .removePopup > div > p {
        color: white;
        margin: 25px 0;
    }


    .removePopup > div > div {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
    }

        .removePopup > div > div > button {
            padding: 5px 20px;
        }

        .removePopup > div > div:first-of-type {
            justify-content: space-between;
        }

            .removePopup > div > div:first-of-type b {
                font-size: 25px;
                color: black;
            }


        .removePopup > div > div > i {
            color: white;
            cursor: pointer;
            font-size: 20px;
        }

            .removePopup > div > div > i:hover {
                color: var(--green);
            }

.removeYes, .removeNo {
    background: white;
    outline: 1px solid var(--blue);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: 400ms;
}

    .removeYes:hover {
        background: #6eba6e;
        color: white;
    }

    .removeNo:hover {
        background: #db5252;
        color: white;
    }
/*#endregion*/

@media (max-width: 480px) {
    /*#region Header */
    header > div:first-of-type > button {
        /*margin: auto;*/
        margin-left: -10px;
    }

    header > div:first-of-type > h2 {
        font-size: medium;
    }

    aside > nav > div {
        justify-content: space-between;
        padding: 0 20px;
    }

    #collepseAsideMin {
        display: block;
    }

    .title-h1 {
        font-size: medium;
    }

    .btn {
        padding: 7px 15px !important;
    }

        .btn > i {
            font-size: small !important;
        }

    .backBtn {
        padding: 5px 10px !important;
    }

    .removePopup > div {
        width: 100%;
    }

    .dtr-control {
        display: flex;
    }
    /*#endregion */
}
