/* recordatorios.css */

/* Formulario de recordatorios */
.recordatorios-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.recordatorios-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.form-buttons {
    margin-top: 20px;
}

.form-buttons button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#btn-guardar {
    background-color: #0073aa;
    color: white;
}

#btn-guardar:hover {
    background-color: #005a87;
}

#btn-cancelar {
    background-color: #666;
    color: white;
}

#btn-cancelar:hover {
    background-color: #555;
}

/* Mensajes */
.recordatorios-mensaje {
    margin-top: 15px;
}

.recordatorios-mensaje .success {
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.recordatorios-mensaje .error {
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Listado de recordatorios */
.recordatorios-listado {
    margin: 20px 0;
}

.recordatorios-listado h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.recordatorios-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recordatorios-table th,
.recordatorios-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.recordatorios-table th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #333;
}

.recordatorios-table tr:hover {
    background-color: #f5f5f5;
}

/* Clases de urgencia para filas */
.recordatorios-table tr.vencido {
    background-color: #f8d7da;
}

.recordatorios-table tr.urgente {
    background-color: #fff3cd;
}

.recordatorios-table tr.proximo {
    background-color: #d1ecf1;
}

/* Botones de acción */
.btn-editar,
.btn-eliminar {
    padding: 5px 10px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-editar {
    background-color: #17a2b8;
    color: white;
}

.btn-editar:hover {
    background-color: #138496;
}

.btn-eliminar {
    background-color: #dc3545;
    color: white;
}

.btn-eliminar:hover {
    background-color: #c82333;
}

/* Menú de notificaciones */
.recordatorios-notification-menu {
    position: relative;
    display: inline-block;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
    border-radius: 50%;
    background-color: #0073aa;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s;
}

.notification-icon:hover {
    background-color: #005a87;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    margin-top: 5px;
}

.notification-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.notification-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.notification-date {
    font-size: 12px;
    color: #666;
}

/* Clases de urgencia para notificaciones */
.notification-item.muy-urgente {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

.notification-item.urgente {
    border-left: 4px solid #ffc107;
    background-color: #fffdf5;
}

.notification-item.proximo {
    border-left: 4px solid #17a2b8;
    background-color: #f5fafe;
}

/* Responsivo */
@media (max-width: 768px) {
    .recordatorios-form {
        margin: 10px;
        padding: 15px;
    }
    
    .recordatorios-table {
        font-size: 14px;
    }
    
    .recordatorios-table th,
    .recordatorios-table td {
        padding: 8px;
    }
    
    .notification-dropdown {
        right: -50px;
        min-width: 280px;
    }
    
    .form-buttons button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .recordatorios-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }
}


