#my-notice-container {
    position: fixed;
    left: 50%;
    z-index: 2147483647; /* Max Z-Index */
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    top: 10%;
    bottom: auto;
    transform: translateX(-50%);
}

#my-notice-container.position-center {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

#my-notice-container.position-bottom {
    top: auto;
    bottom: 10%;
    transform: translateX(-50%);
}

.my-notice-toast {
    /* Glassmorphism Light Style */
    background: rgba(255, 255, 255, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    color: #2c3e50;
    padding: 14px 30px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-25px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    min-width: 260px;
    justify-content: center;
    letter-spacing: 0.3px;
}

.my-notice-toast.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-notice-toast.clickable:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
}

.my-notice-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Success - Green */
.my-notice-toast.type-success {
    border-left: 4px solid #10b981;
}
.my-notice-toast.type-success .my-notice-icon {
    color: #10b981;
}

/* Error - Red */
.my-notice-toast.type-error {
    border-left: 4px solid #ef4444;
}
.my-notice-toast.type-error .my-notice-icon {
    color: #ef4444;
}

/* Info - Gray/Blue */
.my-notice-toast.type-info {
    border-left: 4px solid #3b82f6;
}
.my-notice-toast.type-info .my-notice-icon {
    color: #3b82f6;
}

/* Warning - Yellow/Orange */
.my-notice-toast.type-warning {
    border-left: 4px solid #f59e0b;
}
.my-notice-toast.type-warning .my-notice-icon {
    color: #f59e0b;
}

/* System - Blue/Purple */
.my-notice-toast.type-system {
    border-left: 4px solid #8b5cf6;
}
.my-notice-toast.type-system .my-notice-icon {
    color: #8b5cf6;
}

.my-notice-icon {
    margin-right: 14px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Notification Panel Styles
   ========================================================================== */
#my-notice-panel {
    position: fixed;
    top: 60px; /* Header height offset */
    right: -360px; /* Hidden by default */
    width: 340px;
    height: calc(100vh - 80px);
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 1050; /* Above bootstrap modal backdrop */
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Ensure it is hidden if not open */
    visibility: hidden;
    opacity: 0;
}

#my-notice-panel.open {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.my-notice-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border-top-left-radius: 16px;
}

.my-notice-panel-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
}

.my-notice-panel-close {
    cursor: pointer;
    color: #999;
    font-size: 20px;
    padding: 5px;
    line-height: 1;
}

.my-notice-panel-close:hover {
    color: #333;
}

.my-notice-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.my-notice-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.my-notice-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.my-notice-item:hover {
    background: #f9f9f9;
}

.my-notice-item-icon {
    margin-right: 12px;
    font-size: 18px;
    margin-top: 2px;
}

.my-notice-item-content {
    flex: 1;
}

.my-notice-item-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 4px;
    word-break: break-all;
}

.my-notice-item-time {
    font-size: 12px;
    color: #aaa;
}

.my-notice-clear-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border: none;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.my-notice-clear-btn:hover {
    background: #eee;
}

/* Icon Colors in Panel */
.my-notice-item.type-success .my-notice-item-icon { color: #10b981; }
.my-notice-item.type-error .my-notice-item-icon { color: #ef4444; }
.my-notice-item.type-info .my-notice-item-icon { color: #3b82f6; }
.my-notice-item.type-warning .my-notice-item-icon { color: #f59e0b; }
.my-notice-item.type-system .my-notice-item-icon { color: #8b5cf6; }

/* Overlay for mobile */
#my-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#my-notice-overlay.show {
    display: block;
    opacity: 1;
}
/* Enhanced Content Layout */
.my-notice-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.my-notice-message {
    line-height: 1.4;
}

/* Action Buttons */
.my-notice-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.my-notice-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.my-notice-btn-default {
    background: rgba(0,0,0,0.05);
    color: #333;
}

.my-notice-btn-default:hover {
    background: rgba(0,0,0,0.1);
}

.my-notice-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.my-notice-btn-primary:hover {
    background: #2563eb;
}

.my-notice-btn-danger {
    background: #ef4444;
    color: #fff;
}

.my-notice-btn-danger:hover {
    background: #dc2626;
}

/* Panel Improvements */
.my-notice-item-content {
    min-width: 0; /* Fix flex overflow */
}
