
/* ========================================
   ESTILOS MÓDULO DE ANOTAÇÕES
   ======================================== */

/* Cards de Emergência */
.emergency-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.emergency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.emergency-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.emergency-info {
    flex: 1;
}

.emergency-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.emergency-number {
    font-size: 24px;
    font-weight: 700;
    color: #1e88e5;
}

.btn-call {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-call:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

.btn-call:active {
    transform: scale(0.95);
}

/* Grid de Anotações */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.note-type {
    flex: 1;
}

.note-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f5f6fa;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-small:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-icon-small.text-danger:hover {
    background: #ffebee;
    color: #f44336;
}

.note-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.note-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.note-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* Links de telefone */
a[href^="tel:"] {
    text-decoration: none;
    font-weight: 600;
}

a[href^="tel:"]:hover {
    text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-card {
        flex-direction: row;
    }
    
    .emergency-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .note-card {
        padding: 1rem;
    }
    
    .note-title {
        font-size: 16px;
    }
    
    .note-content {
        font-size: 13px;
    }
}
