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