/* Popup Notifications Styles */
.popup-notification {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    width: 360px;
    opacity: 1;
    transition: opacity .35s ease-in-out, transform .35s ease-in-out;
    z-index: 9999;
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Admin Panel Styles */
.settings-group {
    margin: 20px 0;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.settings-group-title {
    margin: 0;
    padding: 15px 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group-title .dashicons {
    color: #50575e;
    font-size: 18px;
}

.settings-group-content {
    padding: 20px;
}

.notification-settings {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    position: relative;
}

.notification-settings h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
}

/* Color coding for notifications */
.notification-type-1 {
    border-left: 4px solid #007cba;
}

.notification-type-1 h3::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #007cba;
    border-radius: 50%;
    margin-right: 8px;
}

.notification-type-2 {
    border-left: 4px solid #00a32a;
}

.notification-type-2 h3::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #00a32a;
    border-radius: 50%;
    margin-right: 8px;
}

.notification-type-3 {
    border-left: 4px solid #dba617;
}

.notification-type-3 h3::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #dba617;
    border-radius: 50%;
    margin-right: 8px;
}

.notification-type-4 {
    border-left: 4px solid #d63638;
}

.notification-type-4 h3::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #d63638;
    border-radius: 50%;
    margin-right: 8px;
}

.notification-type-5 {
    border-left: 4px solid #9b51e0;
}

.notification-type-5 h3::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #9b51e0;
    border-radius: 50%;
    margin-right: 8px;
}

/* Form validation styles */
.field-validation-message {
    display: none;
    color: #d63638;
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

input:invalid, textarea:invalid {
    border-color: #d63638;
    box-shadow: 0 0 0 1px #d63638;
}

/* Icons in form labels */
.form-table th {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-table th .dashicons {
    color: #646970;
    font-size: 16px;
    flex-shrink: 0;
}

@media screen and (max-width: 800px) {
    .popup-notification {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin: 0;
    }
}

.popup-notification-content {
    position: relative;
}

.popup-notification-title {
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #333;
}

.popup-notification-text {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.popup-notification-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.popup-notification-button {
    display: none;
    flex: 1;
    font-weight: 400;
    background-color: #fff;
    color: #000;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border: 2px solid #000;
    border-radius: 35px;
    cursor: pointer;
    text-transform: uppercase;
    -webkit-user-select: none;
    user-select: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    height: 48px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.popup-notification-button:hover {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}

.popup-notification-close {
    position: absolute;
    top: -20px;
    right: -20px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.popup-notification-close:hover {
    background-color: #f0f0f0;
}

.popup-notification-close .i-close {
    width: 16px;
    height: 16px;
    position: relative;
}

.popup-notification-close .i-close::before,
.popup-notification-close .i-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background-color: #666;
    transform-origin: center;
}

.popup-notification-close .i-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.popup-notification-close .i-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Анимации */
.popup-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.popup-notification.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 480px) {
    .popup-notification {
        padding: 20px;
    }
    
    .popup-notification-title {
        font-size: 18px;
    }
    
    .popup-notification-text {
        font-size: 13px;
    }
    
    .popup-notification-button {
        font-size: 14px;
        height: 44px;
        padding: 10px 20px;
    }
}
