/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* =================== LOGIN =================== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f6fa;
}

.login-container {
    max-width: 400px;
    width: 100%;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #555;
}

.login-container img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Estilo geral do body */
body {
    background-color: #f0f2f5;
}

/* Container principal */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Menu lateral */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
}

/* Logo da empresa */
.sidebar .logo {
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Menu lateral */
.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin: 15px 0;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.sidebar nav ul li a:hover {
    color: #ff6600; /* Destaque laranja */
}

/* Conteúdo principal */
.main-content {
    margin-left: 270px; /* Para não sobrepor o menu */
    padding: 30px;
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* Títulos principais */
.main-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.main-content h3 {
    margin-top: 40px;
    margin-bottom: 10px;
    color: #333;
}

/* Cards Dashboard */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

.dashboard-card h4 {
    font-size: 18px;
    color: #ff6600;
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

/* Destaque para cards principais */
.dashboard-card.destaque {
    background: #fff7f0;
    border: 2px solid #ff6600;
}

/* Filtro de período */
.periodo {
    margin-bottom: 20px;
}

.periodo label {
    font-weight: bold;
    margin-right: 10px;
}

.periodo input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Canvas dos Gráficos */
.dashboard-card canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 180px;
    margin: 0 auto;
}

/* Botões padrão (se precisar) */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Tabelas padrão (se precisar em outras telas) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.05);
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Links padrão */
a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Modal para listar serviços */
#modalServicos {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    background: white;
    padding: 20px;
    border: 1px solid black;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

#modalServicos h3 {
    margin-bottom: 10px;
}

#modalServicos button {
    background-color: #dc3545;
}

#modalServicos button:hover {
    background-color: #c82333;
}

/* Estilo para formulários */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.05);
    max-width: 600px;
    margin-bottom: 30px;
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 15px;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="datetime-local"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form textarea {
    resize: vertical;
}

form button {
    margin-top: 20px;
    margin-right: 10px;
}

button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e65c00;
}

th {
    background-color: #ff6600;
    color: white;
}

a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

form .servico, form .peca {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

form input[type="text"],
form input[type="number"],
form input[type="datetime-local"],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form .servico input,
form .peca input,
form .peca select {
    flex: 1;
}

.botao-cinza {
    background-color: #cccccc;
    color: #333;
    border: none;
    padding: 8px 16px;
    margin: 5px 2px;
    border-radius: 5px;
    cursor: pointer;
}

.botao-cinza:hover {
    background-color: #bbbbbb;
}

.green-light {
    background-color: #e6ffe6;
    padding: 10px;
    border-radius: 8px;
}

.red-light {
    background-color: #ffe6e6;
    padding: 10px;
    border-radius: 8px;
}

.highlight-green {
    background-color: #ccffcc;
    font-weight: bold;
}

.highlight-red {
    background-color: #ffcccc;
    font-weight: bold;
}

