/* Interceptor: Hide Default Notices */
body.wp-admin .notice,
body.wp-admin .updated,
body.wp-admin .error,
body.wp-admin .update-nag {
    display: none !important;
    opacity: 0;
}

/* Exception: Standard Feedback */
body.wp-admin .notice.tidyadminnotices-keep-visible,
body.wp-admin .updated.tidyadminnotices-keep-visible,
body.wp-admin .error.tidyadminnotices-keep-visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: tidyadminnotices-fade-in 0.3s ease;
}

/* Exception: Inside our Drawer */
#tidyadminnotices-root .notice,
#tidyadminnotices-root .updated,
#tidyadminnotices-root .error,
#tidyadminnotices-root .update-nag,
.tidyadminnotices-visible {
    display: block !important;
    opacity: 1;
    margin: 0 0 10px 0;
    position: relative;
    top: auto;
    left: auto;
    box-shadow: none;
}

@keyframes tidyadminnotices-fade-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Bar Bell Icon */
#wp-admin-bar-tidyadminnotices-bell .ab-icon {
    font-family: 'dashicons' !important;
    content: '\f467';
    font-size: 20px !important;
    padding-top: 5px !important;
}

#wp-admin-bar-tidyadminnotices-bell .tidyadminnotices-badge {
    background: #d63638;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    position: absolute;
    top: 4px;
    right: 0px;
    line-height: 1;
    display: none;
}

#wp-admin-bar-tidyadminnotices-bell.has-notifications .tidyadminnotices-badge {
    display: inline-block;
}

/* Notification Drawer UI */
.tidyadminnotices-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tidyadminnotices-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.tidyadminnotices-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    bottom: 0;
    width: 450px;
    max-width: 90%;
    background: #f6f7f7;
    z-index: 99999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.tidyadminnotices-drawer.open {
    right: 0;
}

.tidyadminnotices-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #c3c4c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tidyadminnotices-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}

.tidyadminnotices-close {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 24px;
    color: #787c82;
}

.tidyadminnotices-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Notice Cards */
.tidyadminnotices-wrapper {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left-width: 4px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tidyadminnotices-wrapper.error { border-left-color: #d63638; }
.tidyadminnotices-wrapper.warning { border-left-color: #f0b849; }
.tidyadminnotices-wrapper.success { border-left-color: #00a32a; }

.tidyadminnotices-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f1;
    text-align: right;
}

.tidyadminnotices-snooze-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #787c82;
    font-size: 12px;
    text-decoration: underline;
}

.tidyadminnotices-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #646970;
    text-transform: uppercase;
    margin: 20px 0 10px;
    border-bottom: 1px solid #dcdcde;
}