/*
 * Account Notifications Center - App Style
 * Version 2.2.0 - Full Width, No Box, View Switching
 */

:root {
    /* LIGHT MODE */
    --anc-bg-main: transparent; /* No background color for wrapper */
    --anc-text-main: #1f2937;
    --anc-text-sub: #6b7280;
    --anc-border: #e5e7eb;
    --anc-card-bg: #ffffff;
    --anc-accent: #4f46e5;
    --anc-hover: #f9fafb;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* DARK MODE */
        --anc-bg-main: transparent;
        --anc-text-main: #f3f4f6;
        --anc-text-sub: #9ca3af;
        --anc-border: #374151;
        --anc-card-bg: #1f2937;
        --anc-accent: #818cf8;
        --anc-hover: #374151;
    }
}

.anc-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: var(--anc-bg-main) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--anc-text-main);
    box-sizing: border-box;
    position: relative;
    min-height: 400px; /* Ensure height for transitions */
}

/* --- VIEW 1: LIST HEADER (Clean, No Back Icon) --- */
.anc-header-simple {
    padding: 20px 0 10px 0;
    /* No border, no background, just text */
}
.anc-page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--anc-text-main);
}

/* --- TABS --- */
.anc-tabs-front {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--anc-border);
    padding-bottom: 0;
}
.anc-tab-front {
    background: transparent;
    border: none;
    padding: 10px 5px;
    font-size: 15px;
    font-weight: 500;
    color: var(--anc-text-sub);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.anc-tab-front.active {
    color: var(--anc-text-main);
    font-weight: 600;
}
.anc-tab-front.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--anc-accent);
}

/* --- LIST ITEMS --- */
.anc-list {
    list-style: none; padding: 0; margin: 0;
}
.anc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--anc-border); /* Minimal list style */
    cursor: pointer;
    transition: background 0.2s;
}
.anc-item:hover {
    background: rgba(0,0,0,0.02); /* Very subtle hover */
}
.anc-item:last-child { border-bottom: none; }

.anc-item-main { flex: 1; padding-right: 15px; }
.anc-item-title {
    font-size: 16px; font-weight: 600; margin-bottom: 4px;
    color: var(--anc-text-main);
}
.anc-item-date { font-size: 13px; color: var(--anc-text-sub); }
.anc-time { opacity: 0.7; font-size: 0.9em; margin-left: 5px; }

/* Delete Button */
.anc-delete {
    background: transparent; border: none; font-size: 24px;
    color: var(--anc-text-sub); opacity: 0.5; cursor: pointer;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.anc-delete:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; opacity: 1; }

/* Empty Message */
.anc-empty-message {
    padding: 40px; text-align: center; color: var(--anc-text-sub);
    font-style: italic;
}

/* --- VIEW 2: DETAIL PAGE STYLES (The "New Page") --- */
#anc-view-detail {
    animation: slideInRight 0.3s ease-out; /* Slide effect */
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.anc-detail-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--anc-border);
    margin-bottom: 20px;
}
.anc-back-btn {
    background: transparent; border: none;
    font-size: 16px; font-weight: 500;
    color: var(--anc-text-main);
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    padding: 0;
}
.anc-arrow-icon { font-size: 20px; line-height: 1; }
.anc-back-btn:hover { opacity: 0.7; }

.anc-detail-meta { margin-bottom: 20px; }
#anc-detail-title {
    font-size: 24px; font-weight: 700; margin: 0 0 8px 0;
    color: var(--anc-text-main);
}
#anc-detail-date { font-size: 14px; color: var(--anc-text-sub); }

.anc-divider { height: 1px; background: var(--anc-border); margin: 20px 0; opacity: 0.5; }

#anc-detail-content {
    font-size: 16px; line-height: 1.6;
    color: var(--anc-text-main);
}
/* Ensure images in content fit */
#anc-detail-content img { max-width: 100%; height: auto; border-radius: 8px; }