/* 8-Wire Admin Notices Inline Panel Styles */

:root {
    --notice-primary: #1dd1a1;
    --notice-secondary: #10ac84;
    --notice-border: rgba(15, 23, 42, 0.08);
    --notice-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    --notice-card-bg: #f7fafc;
}

.notice-panel-container {
    display: block;
    width: 320px;
    max-width: 320px;
    min-width: 280px;
    margin: 24px 0 36px 18px;
    padding: 0;
}

.notice-panel {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--notice-border);
    background: #ffffff;
    box-shadow: var(--notice-shadow);
    overflow: hidden;
    flex-shrink: 0;
}

.notice-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--notice-primary), var(--notice-secondary));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.notice-panel-body {
    padding: 18px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    background: var(--notice-card-bg);
}

.notice-panel.collapsed {
    max-height: 80px;
}

.notice-panel-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notice-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice-panel-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.notice-panel-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.notice-panel-toggle:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
}

.notice-panel-body {
    padding: 18px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    background: #f7fafc;
}

.notice-panel-body::-webkit-scrollbar {
    width: 6px;
}

.notice-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.notice-panel-body::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}

.notice-panel-body::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.28);
}

.notice-item {
    background: #ffffff;
    padding: 14px 14px 14px 16px;
    border-radius: 18px;
    margin-bottom: 14px;
    border-left: 4px solid transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.notice-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.notice-status-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
}

.notice-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.notice-message {
    font-size: 13px !important;
    line-height: 1.65 !important;
    margin-bottom: 10px !important;
}

.notice-time {
    font-size: 11px !important;
    color: #718096;
}

.notice-image {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.notice-image img,
.notice-item img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}


.notice-item.maintenance {
    border-left-color: #f6ad55;
}

.notice-item.down {
    border-left-color: #f56565;
}

.notice-item.motd {
    border-left-color: #63b3ed;
}

#admin-notices-widget:empty::after {
    content: 'No active notices';
    display: block;
    text-align: center;
    color: #718096;
    padding: 24px 0;
    font-size: 13px;
}

.notice-panel.collapsed .notice-panel-body {
    display: none;
}

@media (max-width: 992px) {
    .notice-panel-container {
        position: static;
        width: 100%;
        padding: 0 16px;
        margin-bottom: 24px;
        top: auto;
        left: auto;
    }

    .notice-panel {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        position: static;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 640px) {
    .notice-panel {
        border-radius: 18px;
    }

    .notice-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-panel-toggle {
        align-self: flex-end;
    }
}

.notice-panel-container {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    left: 18px !important;
    top: 120px !important;
}

.notice-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 320px !important;
    margin: 0 !important;
}

.notice-panel-body,
.notice-item {
    width: 100% !important;
    box-sizing: border-box !important;
}

@media print {
    .notice-panel {
        display: none;
    }
}
