﻿@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    font-weight: 400;
    overflow: auto;
}

.hidden {
    display: none
}

.unhide {
}

/* Header */

#header {
    z-index: 9999;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0078D4;
    height: 60px;
    line-height: 60px;
    display: flex;
    align-items: center;
}

    #header, #header a {
        color: #fff;
    }

#header-brand, #header-menu {
    flex-shrink: 0;
}

#header-title {
    flex-grow: 1; 
    text-align: left;
    font-size: 25px; 
    font-weight: 500;
    padding-left: 20px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

#header-Containter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    gap: 10px;
}

    #header-Containter #support-Widget {
        font-size: 16px;
    }

    #header-Containter #header-Buttons {
        margin-left: 5px;
    }

    #header-Containter a:hover, .header-toggle:hover {
        text-decoration: none;
        background-color: #0CC5EB;
        color: #fff;
        transition: 0.25s;
    }

.header-logo img {
    height: 20px;
}

.header-toggle {
    font-size: 18px;
    margin-right: 10px;
}


.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 999999;
}

    .overlay:target {
        visibility: visible;
        opacity: 1;
    }

.help-popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 5s ease-in-out;
    z-index: 999999;
}

    .help-popup h2 {
        margin-top: 0;
        color: #333;
        font-family: Tahoma, Arial, sans-serif;
    }

    .help-popup .close {
        position: absolute;
        top: 20px;
        right: 30px;
        transition: all 200ms;
        font-size: 30px;
        font-weight: bold;
        text-decoration: none;
        color: #333;
    }

        .help-popup .close:hover {
            color: #06D85F;
        }

    .help-popup #popup-content {
        max-height: 30%;
        overflow: auto;
    }

    .help-popup input,textarea{
        border: 1px solid gray;
    }

#profile-photo {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 10px;
}

.username, #signin {
    font-size: 16px;
}

.login-box, .username, .header-logo, .header-toggle, #support-Container {
    padding: 0px 10px;
}
/* Body */

#appMessage {
    width: 100%;
    margin: 25px auto;
    padding: 10px;
    font-weight: 500;
    font-size: 1.25em;
    text-align: center;
}

.supportForm {
    display: grid;
    grid-template-areas:
        "issueType"
        "contactInfo"
        "issueDescription";
    grid-template-columns: Auto Auto;
    grid-template-rows: auto auto auto;
    grid-gap: .8em .5em;
    background: white;
    padding: 0;
    color: #0078D4;
}

    .supportForm label {
        display: block;
    }

    .supportForm .submitButton {
        border-radius: 10px;
        background-color: #0078D4;
        color: white;
        width: 100px;
    }

    .supportForm h3 {
        color: black;
        font-size: 18px;
    }

    .supportForm input {
        width: 100%;
        color: gray;
    }

    .supportForm textarea {
        width: 100%;
        height: 10em;
        resize: none;
        color: gray;
    }

        .supportForm textarea::-webkit-scrollbar {
            width: 1em;
        }

        .supportForm textarea::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        }

        .supportForm textarea::-webkit-scrollbar-thumb {
            background-color: darkgrey;
            outline: 1px solid slategrey;
        }

        .supportForm textarea:valid {
            border-color: black;
        }

        .supportForm textarea:invalid {
            border-color: red;
        }


#issueType {
    grid-area: issueType;
}

#contactInfo {
    grid-area: contactInfo;
}

#issueDescription {
    grid-area: issueDescription;
}

/*@media only screen and (max-width: 768px) {
    #header-brand {
        width: 25%;
    }

    #header-menu {
        width: 10%;
        text-align: center;
    }

    #header-title {
        font-size: 1.25em;
        margin: 0 5px;
        width: 35%;
        text-align: center;
    }

    #header-login, #header-Help {
        width: 25%;
    }

    .username {
        display: none;
    }

    .login-box, .username, .header-logo, .header-toggle, #support-Container {
        padding: 0px 5px;
    }
}*/

@media screen and (max-width: 700px) {

    .popup {
        width: 70%;
    }
}


/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 999;
    overflow: visible;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
}

    /* Transparent Overlay */
    .loading:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255,255,255,0.5);
    }

    /* :not(:required) hides these rules from IE9 and below */
    .loading:not(:required) {
        /* hide "loading..." text */
        font: 0/0 a;
        color: transparent;
        text-shadow: none;
        background-color: transparent;
        border: 0;
    }

        .loading:not(:required):after {
            content: '';
            display: block;
            font-size: 10px;
            width: 50px;
            height: 50px;
            margin-top: -0.5em;
            border: 15px solid rgba(33, 150, 243, 1.0);
            border-radius: 100%;
            border-bottom-color: transparent;
            -webkit-animation: spinner 1s linear 0s infinite;
            animation: spinner 1s linear 0s infinite;
        }

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.btn-primary, .btn-primary:focus, .btn-primary:active {
    background-color: #6E6ED1 !important;
    border: 1px solid #6E6ED1;
}

    .btn-primary:hover {
        filter: brightness(1.25) !important;
        transition: 0.15s !important;
        border: 1px solid #6E6ED1;
    }


    .btn-primary.ui-button {
        color: #fff !important;
        background-color: #6E6ED1 !important;
        border-color: #6E6ED1 !important;
        display: inline-block !important;
        padding: 6px 12px !important;
        margin-bottom: 0 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.42857143 !important;
        text-align: center !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
        -ms-touch-action: manipulation !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        background-image: none !important;
        border: 1px solid transparent !important;
        border-radius: 4px !important;
    }

        .btn-primary.ui-button:focus {
            filter: brightness(1.25) !important;
        }

        .btn-primary.ui-button:hover {
            filter: brightness(1.25) !important;
        }

.main-container {
    margin-top: 10px;
}

/* Menu bar container */
.menu-bar {
    background-color: #ddd;
    color: #191560;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    font-weight: 600;
    
}

    /* Menu items container */
    .menu-bar .menu-items {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

        /* Menu links */
        .menu-bar .menu-items a {
            color: #191560;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            transition: background-color 0.15s;
            text-align: center;
        }

            .menu-bar .menu-items a:hover {
                background-color: #191560;
                color: white;
            }

        .menu-bar .menu-items button {
            background-color: transparent;
            color: #191560;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.15s;
            text-align: center;
        }

            .menu-bar .menu-items button:hover {
                background-color: #191560;
                color: white;
            }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .menu-bar {
        flex-wrap: wrap;
        text-align: center;
    }

        .menu-bar .menu-items {
            flex-direction: column;
            gap: 0.5rem;
        }
}

.font-awesome-spinner {
    font-size: 100px;
    color: #DE9BE0;
}

/* General table styling for custom-datatable */
.custom-datatable {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

    /* Header styling */
    .custom-datatable thead th {
        background-color: #eee;
        color: #191560;
        text-align: left;
        padding: 10px;
        border-bottom: 2px solid #ddd;
    }

    /* Body row styling */
    .custom-datatable tbody tr {
        border-bottom: 1px solid #ddd;
        transition: background-color 0.3s;
        cursor:pointer;
    }

        /* Hover effect */
        .custom-datatable tbody tr:hover {
            background-color: #f8f8f8;
        }

    /* Cell styling */
    .custom-datatable tbody td {
        padding: 10px;
    }

.ui-dialog-titlebar {
    background: #ddd !important;
    color: #191560 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: left !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 20px !important;
    border-radius: 0px !important;
    margin-bottom: 10px;
}

.ui-dialog {
    padding:0px !important;
}


.page-navigtion-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #6E6ED1;
    margin-bottom:10px;
    cursor:pointer;
}

    .page-navigtion-link i {
        font-size: 18px;
    }

    .page-navigtion-link:hover {
        color: #3D3DC1;
        transition: 0.15s !important;
        text-decoration:underline;
    }

@media print {
    .hide-on-print {
        display: none !important;
    }
}