/* Importando fonte do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #e0f2ea, #f6faf7);
    margin: 0;
    padding: 0;
}
header {
    background: #1a7f5a;
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header h1 {
    margin: 0 2rem 0 0;
    font-size: 2rem;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 0.5rem;
}

nav button {
    background: #fff;
    color: #1a7f5a;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
nav button i {
    margin-right: 0.3rem;
}
nav button:hover {
    background: #e0f2ea;
}

main {
    padding: 2rem;
    padding-bottom: 80px; /* espaço para o footer fixo */
}
.cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    padding: 1rem 2rem;
    flex: 1;
    text-align: center;
}
.card h3 i {
    color: #1a7f5a;
    margin-right: 0.4rem;
}
form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
form input, form select, form button {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}
form button {
    background: #1a7f5a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
form button i {
    margin-right: 0.3rem;
}
form button:hover {
    background: #145c41;
}
form label {
    font-weight: bold;
    color: #1a7f5a;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
ul {
    list-style: none;
    padding: 0;
}
ul li {
    background: #fff;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    box-shadow: 0 1px 4px #0001;
}
footer {
    background: #e0f2ea;
    text-align: center;
    padding: 1rem;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    font-size: 1rem;
    z-index: 100;
    box-shadow: 0 -2px 8px #0001;
}
.logo {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.logo img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    padding: 4px;
}

/* Login container */
.login-container {
    background: #fff;
    max-width: 450px; /* Aumentado de 350px para 450px */
    margin: 60px auto 0 auto; /* Ajustada a margem superior */
    padding: 1.5rem 1.5rem; /* Reduzido o padding vertical */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.login-container .logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container .logo img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 6px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-container .logo img:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.login-container h1 {
    margin-bottom: 2rem;
    color: #1a7f5a;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.login-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-container form input {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container form input:hover {
    border-color: #1a7f5a;
}

.login-container form input:focus {
    border-color: #1a7f5a;
    box-shadow: 0 0 6px rgba(26, 127, 90, 0.5);
    outline: none;
}

.login-container button {
    background: #1a7f5a;
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-container button:hover {
    background: #145c41;
    transform: scale(1.05);
}

.login-container button:focus {
    outline: 2px solid #145c41;
    outline-offset: 2px;
}

.login-container a {
    color: #1a7f5a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.login-container a:hover {
    color: #145c41;
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-box {
    background: #e0f2ea;
    border-left: 4px solid #1a7f5a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}
.info-box h4 {
    margin: 0 0 0.5rem 0;
    color: #1a7f5a;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.info-box p {
    margin: 0;
    color: #145c41;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 70%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-action {
    background: none;
    border: none;
    color: #1a7f5a;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.9em;
}

.btn-action:hover {
    text-decoration: underline;
}
.notification-buttons {
    display: inline-flex;
    margin-left: 15px;
    gap: 8px;
}

#listaNotificacoes li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #1a7f5a;
    border-radius: 4px;
}

#listaNotificacoes li span {
    flex-grow: 1;
}

/* Adicionar ao CSS existente */
#listaPacientes li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

#listaPacientes li > div:first-child {
    flex-grow: 1;
}

.acoes-paciente {
    display: flex;
    gap: 8px;
}

.acoes-paciente button {
    white-space: nowrap;
}
#listaColetas li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #fd7e14; /* Cor laranja para coletas */
    border-radius: 4px;
}

#listaColetas li > div:first-child {
    flex-grow: 1;
}

.acoes-coleta {
    display: flex;
    gap: 8px;
}

.coleta-concluida {
    color: #28a745;
    font-weight: bold;
    margin-left: 10px;
}
/* Botões de ação */
.btn-action {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-action:hover {
    background-color: #e9ecef;
}
