/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BASE */
body{
    font-family:"Segoe UI", Arial, sans-serif;
    background:#f6f6f6;
    color:#333;
}

/* LAYOUT */
.wrapper{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */
.sidebar{
    width:260px;
    background:#ffffff;
    border-right:1px solid #eee;
    display:flex;
    flex-direction:column;
    padding:25px 18px;
}

/* LOGO */
.logo-box{
    text-align:center;
    margin-bottom:35px;
}
.logo-box img{
    max-width:170px;
}

/* MENU */
.menu a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    margin-bottom:10px;
    border-radius:14px;
    color:#444;
    text-decoration:none;
    font-weight:600;
    transition:all .3s ease;
}

.menu a:hover{
    background:linear-gradient(135deg,#d4af37,#f1d27a);
    color:#000;
}

.menu a.active{
    background:linear-gradient(135deg,#d4af37,#f1d27a);
    color:#000;
}

.menu a.sair{
    margin-top:auto;
    color:#a00;
}

/* CONTEÚDO */
.content{
    flex:1;
    padding:30px;
}

/* TÍTULOS */
h1{
    font-size:26px;
    margin-bottom:5px;
    color:#222;
}
small{
    color:#888;
}

/* CARDS DASHBOARD */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:22px;
    margin:25px 0;
}

.card{
    background:#fff;
    padding:24px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    border-top:4px solid #d4af37;
    transition:transform .2s ease;
}

.card:hover{
    transform:translateY(-4px);
}

.card span{
    font-size:14px;
    color:#999;
}

.card h2{
    font-size:30px;
    margin-top:6px;
    color:#111;
}

/* TABELAS */
table{
    width:100%;
    background:#fff;
    border-radius:20px;
    border-collapse:collapse;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

th,td{
    padding:15px;
    border-bottom:1px solid #eee;
    text-align:left;
    vertical-align: middle;
}

th{
    background:#fafafa;
    font-weight:600;
    color:#555;
}

/* Tabelas em cards (evitar sobreposição de títulos) */
.table-box table{
    table-layout: fixed;
}
.table-box th{
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-box td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-box th.hora, .table-box td.hora{
    width: 72px;
}
.table-box th.paciente, .table-box td.paciente{
    width: 28%;
}
.table-box th.procedimento, .table-box td.procedimento{
    width: 28%;
}
.table-box th.status, .table-box td.status{
    width: 96px;
}
.table-box th.acoes, .table-box td.acoes{
    width: 150px;
}

/* STATUS */
.status-Agendado{
    color:#b08d2c;
    font-weight:bold;
}
.status-Confirmado{
    color:#2e7d32;
    font-weight:bold;
}
.status-Atendido{
    color:#1565c0;
    font-weight:bold;
}
.status-Cancelado{
    color:#c62828;
    font-weight:bold;
}

/* Botões Globais */
.btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
    transition:.2s;
    white-space:nowrap;
    cursor:pointer;
    border: none;
}

/* Cores de Botões */
.btn-info{
    background:#e8f2fc;
    color:#1f6fd6;
}
.btn-warning{
    background:#fff3e0;
    color:#ef8c00;
}
.btn-danger{
    background:#fdecea;
    color:#c0392b;
}

/* Hover */
.btn:hover{
    filter:brightness(.95);
    transform:translateY(-1px);
}

/* Links de Paciente (Dashboard) */
.paciente-link {
    text-decoration: none;
    color: #4b2c85; /* Roxo escuro para destacar, ou pode manter a cor padrão */
    font-weight: bold; /* Negrito solicitado */
    transition: color 0.2s;
}

.paciente-link:hover {
    color: #d4af37;
    text-decoration: underline;
}

.login-page{
    background: linear-gradient(135deg,#faf7ef,#f8f2dc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-wrapper{
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.login-card{
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 28px;
    border-top: 5px solid #d4af37;
    text-align: center;
}
.login-logo{
    max-width: 160px;
    margin: 0 auto 12px;
    display: block;
}
.login-card h2{
    font-size: 20px;
    color: #333;
    margin: 8px 0 18px;
}
.login-card form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-card input[type=email],
.login-card input[type=password]{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: #fbfbfb;
}
.login-card button{
    background: #3498db;
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}
.login-card .erro{
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: left;
}
.login-actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}
.login-actions a{
    color: #4b2c85;
    text-decoration: none;
    font-weight: 600;
}
.toggle-pass{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    background: #eee;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}
