/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
}

/* Estrutura do Painel */
.wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    height: 100vh;
    position: fixed;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f4f4f4;
}

.sidebar-header img {
    max-width: 160px;
    height: auto;
}

.sidebar-menu {
    padding: 15px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #5a5a5a;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a i {
    margin-right: 12px;
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.sidebar-menu a:hover {
    background-color: #f0f7ff;
    color: #124B92;
}

.sidebar-menu a.active {
    background-color: #f0f7ff;
    color: #124B92;
    border-left-color: #124B92;
    font-weight: 600;
}

/* Conteúdo Principal */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding-bottom: 50px;
}

/* Topbar */
.topbar {
    height: 70px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topbar h2 {
    color: #124B92;
    font-size: 18px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background-color: #fff1f0;
    color: #cf1322;
    padding: 8px 16px;
    border: 1px solid #ffa39e;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-logout:hover {
    background-color: #cf1322;
    color: #fff;
}

/* Container e Grid */
.container {
    padding: 30px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 5px solid #67C6A5;
    margin-bottom: 25px;
}

/* Formulários Profissionais */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
    background-color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #124B92;
    box-shadow: 0 0 0 3px rgba(18, 75, 146, 0.1);
}

/* Botões */
.btn-primary {
    background-color: #124B92;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #0d3a73;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #67C6A5;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-success:hover {
    background-color: #4eb08f;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th {
    text-align: left;
    background-color: #f9f9f9;
    padding: 15px;
    color: #124B92;
    font-size: 14px;
    border-bottom: 2px solid #eee;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

table tr:hover {
    background-color: #fcfcfc;
}

/* Utilitários */
.mb-20 { margin-bottom: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Página de Login */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #124B92 0%, #67C6A5 100%);
}

.login-container {
    background: #fff;
    padding: 45px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
}

.login-logo {
    width: 200px;
    margin-bottom: 30px;
}

/* Mensagens de Feedback */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background-color: #e6f7ff; color: #124B92; border: 1px solid #91d5ff; }
.alert-error { background-color: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}