@tailwind base;
@tailwind components;
@tailwind utilities;

/* Variáveis */
:root {
    --menuBarColor: #1F2937;
    --black: #171717;
    --green: #4eb385;
    --red: #E03B28;
    --orange: #EC9A21;

    --greenGradient: linear-gradient(#4eb385, #357155);
    --redGradient: linear-gradient(#E03B28, #BD2E1E);
    --orangeGradient: linear-gradient(#EC9A21, #E39134);
}
/***************/

.background-green {
    background: var(--greenGradient) !important;
}

.background-red {
    background: var(--redGradient) !important;
}

.background-orange {
    background: var(--orangeGradient) !important;
}

.background-blue {
    background: var(--menuBarColor) !important;
}

.text-green {
    color: var(--green) !important;
}

.text-red {
    color: var(--red) !important;
}

.text-blue {
    color: var(--menuBarColor) !important;
}

.cb-orange {
    color: var(--orange) !important;
}

.hover-orange:hover {
    color: var(--orange) !important;
}

/* Menu principal */
.menu-option:hover {
    color: var(--orange)!important;
}
/******************/


#tecnicos-list {
    list-style-position: inside !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.tecnico-item-list {
    list-style-type: initial !important;
    text-indent: 0px !important;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

#content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1;
}

.myTr:hover {
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.myTr:active {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.myTr label:hover {
    cursor: pointer;
}

/* Rodapé */
footer {
    position: relative !important;
    left: 0 !important;
    bottom: 0 !important;
    background-color: var(--menuBarColor);
    flex-shrink: 0;
    padding-top: 1vh;
}

footer div a:hover {
    color: var(--orange) !important;
}

/***********CSS DO DROPDOWN**********/
/****************TODO***************/

/**************************************************/
/***********SPINNER DE ESPERA - HOMEPAGE***********/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 1.5rem;
    z-index: 9999;
}

.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
/**************************************************/
/**************************************************/

/* ====== CONTADOR DE CARACTERES ========== */
.contador-chars {
    margin: -21px 5px 0 0;
    padding: .2em .6em .3em;
    background-color: var(--orange); 
    color: #fff;
    font-size: 70%;
    border-radius: .25em;
    text-align: center;
    display: inline;
    white-space: nowrap;
    vertical-align: baseline;
    line-height: 1;
}

.pull-right {
    float: right !important;
}

/**************************************************/
/****************** MEDIA QUERIES *****************/
@media (max-width: 800px) {
    #preVisModal {
        height: 600px !important;
        width: 90% !important;
        margin: 0 auto;
    }
}