﻿* {
    font-family: 'Open Sans', Arial, sans-serif;
}

:root {
    --main-red: #e53935;
    --main-red-dark: #b71c1c;
    --sidebar-bg: #18191a;
    --sidebar-active: var(--main-red);
    --sidebar-hover: #232526;
    --sidebar-icon: #fff;
    --sidebar-text: #fff;
    --sidebar-width: 220px;
    --sidebar-width-collapsed: 70px;
    --header-bg: #fff;
    --header-text: #222;
    --main-bg: #f8f9fa;
    --main-bg-dark: #232526;
    --main-text: #222;
    --main-text-dark: #eee;
}

body.dark-mode {
    --header-bg: #232526;
    --header-text: #fff;
    --main-bg: #18191a;
    --main-text: #eee;
}

body {

    background: var(--main-bg);
    color: var(--main-text);
    min-height: 100vh;
    margin: 0;
    display: flex;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: width 0.2s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar .logo-icon {
    width: auto;
    height: 36px;
    margin: 24px 0 16px 0;
    display: none;
    object-fit: contain;
}

.sidebar.collapsed .logo-full {
    width: auto;
    height: 36px;
    margin: 24px 0 16px 0;
    display: none;
    object-fit: contain;
}

.sidebar.collapsed .logo-icon {
    width: 70px;
    height: 80px;
    margin: 24px 0 16px 0;
    display: block;
    object-fit: contain;
}

.logo-icon {
    width: 50px;
    height: 36px;
    margin: 24px 0 16px 0;
    display: none;
    object-fit: contain;
}

.logo-full {
    width: auto;
    height: 80px;
    margin: 24px 0 16px 0;
    display: block;
    object-fit: contain;
}

.sidebar .sidebar-menu {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.sidebar .sidebar-menu a.active,
.sidebar .sidebar-menu a:hover {
    background: var(--sidebar-hover);
    border-left: 4px solid var(--sidebar-active);
    color: var(--main-red);
}

.sidebar .sidebar-menu i {
    font-size: 1.3rem;
    min-width: 24px;
    color: var(--sidebar-icon);
}

.sidebar.collapsed .sidebar-menu span {
    display: none;
}

.sidebar .sidebar-menu span {
    transition: opacity 0.2s;
}

.sidebar .sidebar-bottom {
    margin-bottom: 24px;
}

.sidebar .toggle-dark {
    background: none;
    border: none;
    color: var(--sidebar-icon);
    font-size: 1.3rem;
    margin-top: 12px;
    cursor: pointer;
}

.main-content {
    margin-top: 100px;
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.2s;
}

.sidebar.collapsed~.main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.main-header {
    position: fixed;
    width: 99%;
    top: 0;
    background: var(--header-bg);
    color: var(--header-text);
    padding: 0.75rem 2rem;
    display: flex; /* ISSO AQUI */
    align-items: center;
    justify-content: space-between; /* ou flex-end se quiser tudo à direita */
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

.main-header .logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-header .logo-title h2 {
    margin: 0;
    color: var(--main-red);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: block;
}
.main-header .user-info {
    margin-left: auto;
    max-width: 350px;
    font-size: 1rem;
    color: var(--header-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}
.main-container {
    flex: 1;
    padding: 2rem 2.5rem 1rem 2.5rem;
    background: none;
}

.main-footer {
    background: var(--header-bg);
    color: var(--header-text);
    text-align: center;
    padding: 1rem 0 0.5rem 0;
    font-size: 0.95rem;
    border-top: 1px solid #e0e0e0;

    z-index: 1000;
    width: 99%;
    bottom: 0;
}

@media (max-width: 900px) {
    .main-container {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        gap: 10px;
        padding: 0.5rem 1rem;
    }

    .main-container {
        padding: 0.5rem;
    }
}


@keyframes bounce-in {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    60% {
        transform: translateY(20px);
        opacity: 1;
    }

    80% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }

}

#toast-notificacao {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

#toast-notificacao.show {
    opacity: 1;
}

#notificacao-atraso {
    position: fixed;
    bottom: auto;
    top: 80px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

#notificacao-atraso.show {
    opacity: 1;
}

#notificacao-processo-atraso {
    position: fixed;
    bottom: auto;
    top: 140px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

#notificacao-processo-atraso.show {
    opacity: 1;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-confirmacao {
    z-index: 1060 !important;
    /* Coloque um valor maior para garantir que fique acima dos outros modais */
}

body.dark-mode .modal-content {
    background-color: var(--main-bg-dark);
    color: var(--main-text-dark);
    border: 1px solid #444;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #444;
    background-color: var(--main-bg-dark);
    color: var(--main-text-dark);
}

body.dark-mode .form-control {
    background-color: #2c2c2c;
    color: #eee;
    border-color: #555;
}

body.dark-mode .form-control:focus {
    background-color: #2c2c2c;
    color: #fff;
    border-color: var(--main-red);
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
}

body.dark-mode .card {
    background-color: #2c2c2c;
    color: #fff;
    border-color: var(--main-red);
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
}

body.dark-mode .table {
    background-color: #2c2c2c;
    color: #fff;
    border-color: var(--main-red);
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #aaa;
}

body.dark-mode table {
    background-color: #1e1e1e;
    color: #ddd;
    border-color: #444;
}

body.dark-mode thead {
    background-color: #2a2a2a;
    color: #fff;
}

body.dark-mode tbody tr:nth-child(even) {
    background-color: #252525;
}

body.dark-mode tbody tr:hover {
    background-color: #333;
}

body.dark-mode select,
body.dark-mode input,
body.dark-mode textarea {
    background-color: #2c2c2c;
    color: #eee;
    border: 1px solid #555;
}

.btn-acao {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 2rem;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    border: none;
    transition: transform 0.1s;
    line-height: 1 !important;
    background: black;
    color: white;
}
.btn-primary{
    background-color: #000 !important;
    color: #fff !important;
    border: red;
}

.btn-danger.btn-acao {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;}

.btn-acao:active {
    transform: scale(0.96);
}

.btn-warning.btn-acao {
    background: #000000;
    color: #ffffff;
    border: none;
}

.btn-primary.btn-acao {
    background: #000000;
    color: #fff;
    border: none;
    margin-top: 1px;
}




.btn-acao i {
    font-size: 1.6rem;
    margin: 0;
    line-height: 1;
    display: inline-block;



}

td:last-child {
    vertical-align: middle !important;
    text-align: center;
}

.modal-custom {
    max-width: 90%;

}

body.dark-mode table {
    background-color: #1e1e1e !important;
    color: #ddd !important;
}

body.dark-mode table thead {
    background-color: #2a2a2a !important;
    color: #fff !important;
}

body.dark-mode table tbody tr {
    background-color: #1e1e1e;
}

body.dark-mode table tbody tr:nth-child(even) {
    background-color: #252525;
}

body.dark-mode table tbody tr:hover {
    background-color: #333;
}
#notificacao {
    position: fixed;
    justify-content: end;
    right: 20px;
    top: 50px;
}

.btn-primary {
    background-color: #000000;
    border-color: #ffffff;
}

body.dark-mode .btn-primary:hover {
    background-color: #d02f2f;
    border-color: #d02f2f;
}

body.dark-mode .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
}

body.dark-mode .btn-primary:active {
    background-color: #c02f2f;
    border-color: #c02f2f;
}

h2 {
    text-align: center;
}

h3 {
    text-align: center;
}

.user-info {
    margin-left: auto;
    margin-right: 60px;
    max-width: 200px;
    font-size: 1rem;
    color: var(--header-text);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
    background-color: var(--main-bg);
    border-radius: 8px;
    overflow: hidden;

}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle !important;
    text-align: center;
}

th {
    padding: 12px;
    background-color: var(--main-red);
    color: white;
    text-align: center;
    font-weight: bold;
}

thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--main-red);
}

table tr td:first-child {
    font-weight: bold;
    color: var(--main-red);
}

td a {
    color: inherit;
    text-decoration: none;
}

td a:hover {
    color: var(--main-red);
    text-decoration: underline;
}
#table-responsive{
    justify-content:center;

}
.table-responsive {
    display: block;       /* ou inline-block */
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
    border-radius: 12px;
    overflow: hidden;
}


.table-responsive table {

    border-radius: 12px;
    overflow: hidden;
}

body.dark-mode .table-responsive {

    border-radius: 12px;
    overflow: hidden;
}

.iframe-centralizado {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: none;
}

.icon-pequeno {
    font-size: 6px;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    min-width: 100px;
}

/* Radio Buttons */
.form-check {
    margin-bottom: 0.5rem;
    padding-left: 1.75rem;
}

.form-check-input {
    margin-left: -1.75rem;
}

.form-check-input:checked {
    background-color: var(--main-red);
    border-color: var(--main-red);
}

.form-check-label {
    color: var(--main-bg);
}

.form-label {
    text-align: center;
    position: fixed;
}

.sidebar .sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sidebar .toggle-help,
.sidebar .toggle-dark {
    background: none;
    border: none;
    color: var(--sidebar-icon);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    min-width: 100px;
}

/* Radio Buttons */
.form-check {
    margin-bottom: 0.5rem;
    padding-left: 1.75rem;
}

.form-check-input {
    margin-left: -1.75rem;
}

.form-check-input:checked {
    background-color: var(--main-red);
    border-color: var(--main-red);
}

.form-check-label {
    color: var(--main-bg);
}

.form-label {
    text-align: center;
    position: static;
}

.sidebar .sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sidebar .toggle-help,
.sidebar .toggle-dark {
    background: none;
    border: none;
    color: var(--sidebar-icon);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;}
