/* frontend-styles.css */

/* Reset basic margins and paddings */
.wpun-notification-content p,
.wpun-notification-content ol,
.wpun-notification-content ul,
.wpun-notification-content li,
.wpun-notification-content br {
    margin: 0;
    padding: 0;
}

/* Custom margin and padding for specific elements */
.wpun-notification-content p {
    margin-bottom: 4px; /* Smaller space between paragraphs */
    line-height: 2em; /* Compact line height */
}

.wpun-notification-content li {
    margin-bottom: 4px; /* Smaller space between list items */
    line-height: 1.1em; /* Compact line height */
}

.wpun-notification-content ol,
.wpun-notification-content ul {
    padding-left: 20px; /* Ensure consistent padding for lists */
    margin-bottom: 6px; /* Adjust space after lists */
}

.wpun-notification-content br {
    display: block;
    line-height: 2px; /* Reduced space for line breaks */
    content: "";
}

/* Notification Icon */
.wpun-notification-icon {
    position: relative;
    cursor: pointer;
    display: inline-block;
    font-size: 24px;
    color: #333;
}

.wpun-notification-icon i {
    color: #ffffff !important;
}

.wpun-notification-count {
    position: absolute;
    padding: 0 3px;
    background: red;
    color: white;
    border-radius: 12%;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

/* Modal */
.wpun-modal {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    transition: right 0.3s ease;
}

.wpun-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.wpun-modal-overlay.open {
    display: block;
}

.wpun-modal.open {
    right: 0;
}

.wpun-modal-content {
    padding: 0;
}

.wpun-modal-title {
    margin: 55px 0 20px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

/* Notification List */
.wpun-notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpun-no-notifications {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 16px;
}

.wpun-notification-bubble {
    margin-bottom: 10px;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    border-radius: 5px;
    opacity: 1;
}

.wpun-notification-bubble:hover {
    background-color: #f1f1f1;
}

.wpun-notification-content {
    padding: 15px;
}

.wpun-notification-content h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.wpun-notification-content small {
    font-size: 12px;
    color: #999;
}

/* Action Buttons */
.wpun-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.wpun-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpun-mark-read {
    background-color: #e0f7ff;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.wpun-mark-read:hover {
    background-color: #0073aa;
    color: #ffffff;
}

.wpun-delete {
    background-color: #ffe0e6;
    color: #e60050;
    border: 1px solid #e60050;
}

.wpun-delete:hover {
    background-color: #e60050;
    color: #ffffff;
}

/* Force style for buttons after being clicked */
.wpun-actions button:focus, 
.wpun-actions button:visited {
    background: none;
    color: inherit;
    border: none;
    outline: none;
}

/* Reset specific styles that may be influenced by other themes or plugins */
.wpun-actions button:visited {
    color: inherit !important;
    background: none !important;
    outline: none !important;
}

/* Link styles */
.wpun-notification-content a {
    color: #1e90ff;
    text-decoration: underline;
}

.wpun-notification-content a:hover {
    color: #1e90ff;
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 768px) {
    .wpun-notification-bubble {
        padding: 3px;
    }

    .wpun-modal-title {
        margin: 65px 0 20px 0;
    }

    .wpun-notification-content h4 {
        font-size: 16px;
    }

    .wpun-notification-content p {
        font-size: 14px;
    }

    .wpun-actions button {
        font-size: 12px;
    }
}

/* Estilos gerais do formulário */
.wrap {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Título do formulário */
.wpunot_css .wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Tabela de formulário */
.wpunot_css .form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wpunot_css .form-table th {
    text-align: left;
    font-weight: normal;
    padding-bottom: 10px;
    color: #666;
    width: 25%;
}

.wpunot_css .form-table td {
    padding-bottom: 10px;
}

.wpunot_css .form-table input[type="text"],
.wpunot_css .form-table textarea,
.wpunot_css .form-table select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    background: #f9f9f9;
}

.wpunot_css .form-table input[type="radio"] {
    margin-right: 10px;
}

.wpunot_css .form-table fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

/* Botão de envio */
.wpunot_css .submit .button-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.wpunot_css .submit .button-primary:hover {
    background: #005177;
}

/* Estilos específicos para a seleção de usuários */
#wpun_user_search {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    margin-top: 10px;
}

#wpun_user_list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

#wpun_user_list li {
    margin-bottom: 5px;
}

/* Ajustar o tamanho da lista de busca e o padding */
.wpunot_css .ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    padding-left: 5px;
    font-size: 14px;
    color: #333;
    width: calc(100% - 2px); /* Ajusta a largura da lista para coincidir com o campo de entrada */
    box-sizing: border-box;
}

.wpunot_css .ui-autocomplete li {
    padding: 8px 10px;
}

.wpunot_css .ui-state-focus {
    background: #0073aa;
    color: #fff;
}

.wpunot_css .ui-helper-hidden-accessible {
    display: none;
}

#wpun_user_search {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    margin-top: 10px;
    box-sizing: border-box;
}

.wpun-success-message {
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}