:root {
    --md-primary: #0d6efd;
    --md-bg: #ffffff;
    --md-border: #d1d5db;
    --md-text: #374151;
    --md-muted: #6b7280;
    --md-radius: 14px;
}

.card {
    background: var(--md-bg);
    border-radius: var(--md-radius);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    border: none;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(90deg, #f8fafc, #ffffff);
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
}

.card-header i {
    color: var(--md-primary);
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--md-border);
    background-color: #fff;
    transition: all .2s ease;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.form-label {
    font-weight: 500;
    color: var(--md-muted);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

textarea.form-control {
    background: #f9fafb;
    border-radius: 12px;
}

.btn {
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: .3px;
    transition: all .2s ease;
}

.btn-primary {
    box-shadow: 0 6px 14px rgba(13,110,253,.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary.btn-sm {
    border-radius: 999px;
    padding: 6px 14px;
}

.btn-outline-danger {
    border-radius: 999px;
}

@media (max-width: 768px) {

    .form-control,
    .form-select {
        font-size: 0.95rem;
        padding: 12px;
    }

    .btn-lg {
        border-radius: 16px;
        box-shadow: 0 8px 18px rgba(13,110,253,.35);
    }
}

.bloco-dinamico {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

body {
    background: #f3f4f6; /* cinza claro elegante */
    /* background: linear-gradient(180deg, #f8fafc, #eef2f7); */
    color: #374151;
}

/* ===============================
   INPUT COM ÍCONE DE RELÓGIO
=============================== */
.time-input {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 1 .5.5v4l2.5 1.5a.5.5 0 0 1-.5.866l-2.75-1.65A.5.5 0 0 1 7.5 8V4a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm0-1A7 7 0 1 1 8 1a7 7 0 0 1 0 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}


/* ===============================
   CAMPO TEMPERATURA
=============================== */
.temp-input {
    /* text-align: center; */
    font-weight: 600;
    font-size: 1rem;
}

/* Normal */
.temp-normal {
    border-color: #22c55e !important;
    background-color: #f0fdf4;
}

/* Febre */
.temp-febre {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

/* Hipotermia */
.temp-baixa {
    border-color: #0ea5e9 !important;
    background-color: #f0f9ff;
}

/* ===============================
   INPUT COM ÍCONE (TEMPERATURA)
   =============================== */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-icon .form-control {
    padding-left: 42px; /* espaço para o ícone */
}

/* Foco elegante */
.input-icon .form-control:focus + i,
.input-icon .form-control:focus ~ i {
    color: #0d6efd;
}


/* ===============================
   Campo obrigatório com erro
   =============================== */
.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,.15);
    background-color: #fff5f5;
}

/* Label em erro */
.label-error {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Mensagem opcional (se quiser usar depois) */
.error-text {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
}

/* ===============================
   Buscar alunos automaticamente
   =============================== */
#lista-alunos {
    max-height: 240px;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.15);
}

#lista-alunos li {
    cursor: pointer;
}

#lista-alunos li:hover {
    background: #0d6efd;
    color: #fff;
}

/* / CArd boas vidas / */
.calendar-header-custom {
    padding: 6px 4px 10px;
    line-height: 1.3;

    display: flex;              /* 🔑 */
    flex-direction: column;     /* 🔑 */
    align-items: center;        /* 🔑 centraliza de verdade */
    text-align: center;
}

.calendar-welcome {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.calendar-subtitle {
    font-size: 0.82rem;
    color: #374151;
}

.calendar-description {
    font-size: 0.78rem;
    color: #6b7280;
}