﻿:root {
    --pegasus-blue: #479FD7;
    --pegasus-blue-dark: #3577a1;
    --pegasus-blue-rgb: 71, 159, 215;
    --dark-blue: #66A1F4;
    --bg-grey: #f9fafb;
    --primary-grey: #555455;
    --primary-grey-dark: #424242;
    --primary-grey-light: #727172;
    --helvetica: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --monospace: "Courier New", Courier, monospace;
    --roboto: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --consolas: Consolas, "Courier New", Courier, monospace;
}




/* === Buttons === */

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px;
}

.btn {
    margin: 5px;
    padding: 10px 20px;
    font-size: 25px;
    font-family: var(--helvetica);
    font-weight: 400;
    background-color: transparent;
    color: var(--pegasus-blue);
    border: 1px solid var(--pegasus-blue);
    cursor: pointer;
    white-space: normal;
    min-width: 120px;
    max-width: 180px;
    margin-bottom: 30px;
    transition-duration: 0.4s;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
}

.btn-blue {
    color: white !important;
    border: 1px solid white !important;
    background-color: var(--pegasus-blue) !important;
}



.btn-blue:hover {
    color: white !important;
    border: 1px solid white !important;
    background-color: var(--pegasus-blue-dark) !important;
}


.btn-red {
    color: #ff3d3d !important;
    border: 1px solid red !important;
}

.btn-red-filled {
    color: white !important;
    background-color: #ff3d3d !important;
    border: none !important;
    outline: none !important;
}

.btn-red-filled:hover {
    color: white !important;
    background-color: #d63131 !important;
    border: none !important;
    outline: none !important;
}


.btn-red:hover {
    background-color: red !important;
    border-color: red !important;
    color: white !important;
}


.btn-green {
    color: #3BC83B !important;
    border: 1px solid #3BC83B !important;
}

.btn-green-filled {
    color: white !important;
    background-color: #3BC83B !important;
    border: 1px solid #3BC83B !important;
    outline: none !important;
}

    .btn-green-filled:hover {
        background-color: #39BC39 !important;
        border-color: #39BC39 !important;
        color: white !important;
    }

.btn-green:hover {
    background-color: #3BC83B !important;
    border-color: #3BC83B !important;
    color: white !important;
}

.btn-yellow {
    color: yellow !important;
    border: 1px solid yellow !important;
}

.btn-yellow-filled {
    color: white !important;
    background-color: yellow !important;
    border: none !important;
    outline: none !important;
}

.btn-yellow:hover {
    background-color: yellow !important;
    border-color: yellow !important;
    color: white !important;
}

.btn-small {
    margin: 5px;
    padding: 8px 10px;
    font-size: 18px;
    font-family: var(--helvetica);
    font-weight: 400;
    min-width: 120px;
    max-width: 150px;
}

.btn-smaller {
    margin: 5px;
    padding: 5px 8px;
    font-size: 16px;
    font-family: var(--helvetica);
    font-weight: 400;
    min-width: 70px;
    max-width: 120px;
}
.linkbtn-div {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration:none;
    justify-content:center;
}

.btn-horizontal-only {
    max-width: none !important;
    min-width: fit-content !important;
}

.btn-grey-filled {
    color: white !important;
    background-color: var(--primary-grey) !important;
    border: none !important;
    outline: none !important;
}

/* === Text === */
.title-1 {
    cursor: default;
    font-family: var(--helvetica);
    color: var(--pegasus-blue);
    font-size: 21px;
}

.title-2 {
    cursor: default;
    font-family: var(--helvetica);
    color: var(--pegasus-blue);
    font-size: 19px;
}

.title-3 {
    cursor: default;
    font-family: var(--helvetica);
    color: var(--pegasus-blue);
    font-size: 16px;
    margin: 3px;
}

.text-danger {
    cursor: default;
    color: red;
    font-family: var(--helvetica);
    font-size: 17px;
    list-style-type: none;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 3px;
    background-color: rgb(255, 0, 0, 0.1);
    padding: 7px;
    width: fit-content;
    margin: 12px auto 12px auto;
}

.text-good {
    cursor: default;
    color: green;
    font-family: var(--helvetica);
    list-style-type: none;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 3px;
    background-color: rgb(0, 255, 0, 0.1);
    padding: 7px;
    margin: 13px;
}

.text-yellow {
    cursor: default;
    color: yellow;
    font-family: var(--helvetica);
    list-style-type: none;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 3px;
    background-color: rgb(255, 255, 0, 0.1);
    padding: 7px;
    margin: 13px;
}

.text-black {
    color: black;
}

.text-grey{
    color:var(--primary-grey);
}
/* === Text Box === */
.text-box {
    border: 1px solid grey;
    border-radius: 2px;
    padding: 6px;
    margin: 5px;
    font-size: 18px;
}

.text-box:focus-visible {
    outline: none;
    border: 1px solid grey;
    border-radius: 2px;
    padding: 6px;
    margin: 5px;
}

.text-box-small {
    font-size: 14px;
}

.text-box-full {
    width: 90%; 
    resize: vertical; 
    overflow: auto !important; 
    box-sizing: border-box;
    word-wrap: break-word;
}

.text-box[type="number"]::-webkit-inner-spin-button,
.text-box[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.text-box[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-container {
    display: flex;
    align-items: center;
}

.input-container i {
    margin-right: 10px;
    font-size: 20px;
}

/* === Wrappers === */
.wrapper {
    padding: 10px;
    width: fit-content;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.container-vertical {
    padding: 10px;
    width: fit-content;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === Top Bar === */


.top-bar {
    height: 50px;
    top: 0;
    left: 0;
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    width: 100vw;
    background-color:var(--bg-grey);
    box-shadow:0px 1px 1px rgba(0,0,0,0.2);
    box-sizing:border-box;
    z-index:1000;
}

.top-bar-left-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 0; 
}

.top-bar-center-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; 
    position: absolute;
    left: 50%; 
    transform: translateX(-50%); 
}

.top-bar-right-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0; 
}

.logout-img-btn {
    height: 30px;
}

.top-bar-company-logo {
    height: 35px;
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        height: auto;

    }

    .top-bar-left-container {
        width: 100%;
        margin-bottom: 0px;
    }

    .top-bar-center-container {
        position: static;
        transform: none;
        width: 100%;
        margin-bottom: 10px;

    }

    .top-bar-right-container {
        justify-content: center;
        width: 100%;
    }

    .username-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
}

/* === Profile Picture === */
.pfp {
    width: 38px;
    margin: 6px;
}

.pfp-big {
    width: 60px;
}


/* === Dropdown === */
.dropdown-list {
    border-radius: 2px;
    border: 1px solid grey;
    width: fit-content;
    font-size: 14px;
    height: 25px;
}

.dropdown-list:focus-visible {
    outline: none;
    border-radius: 2px;
    border: 1px solid grey;
}

.overlay {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
}

.overlay-wrapper {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    max-width: 90%;
}
