.hidden { display: none !important; }
.auth-form { max-width: 400px; margin: 20px 0; border: 1px solid #ccc; padding: 20px; border-radius: 5px; }
.auth-form input { display: block; margin-bottom: 15px; width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #ccc; border-radius:4px;}
.auth-form button { padding: 10px 15px; cursor: pointer; margin-bottom: 10px; border:none; border-radius: 4px; font-weight: bold;}
.error-msg { color: red; margin-bottom: 10px; font-weight:bold;}
.success-msg { color: green; margin-bottom: 10px; font-weight:bold;}
.comment-box { border-bottom: 1px solid #eee; padding: 10px 0; }
.comment-author { font-weight: bold; color: #2196F3; margin: 0 0 5px 0;}
.comment-author-role { font-size: 0.9em; font-weight: normal; color: #555;}
.comment-time { font-size: 0.8em; color: #888; }
.comment-content { margin-top:5px; white-space: pre-wrap; }

/* Detail view / Posts */
.detail-view {
    border-top: 2px dashed #000;
    margin-top: 20px;
    padding-top: 10px;
    display: none;
}
.btn-back {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: bold;
}
.comments-container {
    margin-top: 40px;
    border-top: 2px solid #ccc;
    padding-top: 20px;
}
.comment-form-area {
    margin-bottom: 20px;
}
.comment-textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.btn-primary {
    background-color: #2196F3;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn-success {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.btn-danger {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn-warning {
    background: #FF9800;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn-secondary {
    background-color: #9e9e9e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.btn-danger-small {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}
.btn-warning-small {
    background: #FF9800;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-right: 5px;
}
.btn-primary-small {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-right: 5px;
    font-weight: bold;
}
.btn-secondary-small {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    margin-right: 5px;
}
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.admin-hub-container {
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.admin-hub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-link {
    background: none;
    color: blue;
    text-decoration: underline;
    padding: 0;
    border: none;
    cursor: pointer;
}
.google-login-link {
    color: #DB4437;
    font-weight: bold;
    text-decoration: none;
}
.hr-separator {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #ccc;
}
.text-center {
    text-align: center;
}
.post-item {
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.post-title-link {
    margin-bottom: 5px;
}
.post-title-link-non-article {
    margin-bottom: 5px;
    font-size: 1.17em;
    font-weight: bold;
}
.search-results-heading {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}
.admin-actions {
    margin-top: 8px;
}
.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Admin Post Module */
.admin-view-container {
    background: #f0f8ff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #cce7ff;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.admin-header h3 {
    margin: 0;
}
.admin-input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.admin-slug-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding-left: 10px;
    background: #fff;
}
.slug-prefix {
    color: #555;
    font-weight: bold;
}
.slug-input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    background: transparent;
}
.admin-textarea {
    width: 100%;
    height: 250px;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
}
.admin-textarea-short {
    height: 120px;
    margin-bottom: 5px;
}
.char-counter {
    font-size: 0.85em;
    color: #555;
    text-align: right;
    margin-top: -2px;
    margin-bottom: 15px;
}
.article-info {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    line-height: 1.6;
}
.margin-left-5 {
    margin-left: 5px;
}
.margin-right-5 {
    margin-right: 5px;
}
.margin-top-5 {
    margin-top: 5px;
}
.margin-top-15 {
    margin-top: 15px;
}
.margin-bottom-20 {
    margin-bottom: 20px;
}

.reply-info {
    background: #f1f8ff;
    border-left: 3px solid #0366d6;
    padding: 8px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #444;
    cursor: pointer;
}

.reply-info:focus {
    outline: 2px solid #0366d6;
}

.reply-indicator {
    background: #fff3cd;
    color: #856404;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
}


body.requesting-notification > *:not(#notification-overlay) {
    display: none !important;
}

#notification-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: #ffffff;
    padding: 20px;
    font-size: 1.2em;
    color: #333;
}

.text-danger { color: red !important; }
.text-success { color: green !important; }
.text-info { color: blue !important; }
.info-msg { color: blue; margin-bottom: 10px; font-weight: bold; }

.lang-selector-container {
    margin-bottom: 15px;
}
.ui-lang-select {
    padding: 5px;
    font-size: 16px;
}
.filter-select {
    width: auto;
    margin-right: 10px;
}
.pagination-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.pagination-btn {
    text-decoration: none;
    display: inline-block;
}
.custom-article-link {
    cursor: pointer;
    text-decoration: underline;
    color: #007bff;
}
.scrollable-checkbox-list {
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
}
.checkbox-item {
    display: block;
    margin-bottom: 5px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Floating Toast Notification (Accessible & Multi-platform) */
.toast-notification {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(30, 33, 40, 0.95);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    max-width: 90vw;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast-notification.toast-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.toast-notification.toast-hide {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
    pointer-events: none;
}

/* Post Stats (Views, Reads, Likes) */
.post-stats-container {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}
.post-stat-item {
    font-size: 1.05em;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}
.post-stat-item:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
    border-radius: 4px;
}
.post-like-container {
    margin-top: 12px;
    margin-bottom: 10px;
}
.btn-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-like:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}
.btn-like.liked {
    background-color: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}
.btn-like.liked:hover {
    background-color: #fecaca;
    border-color: #ef4444;
}
.btn-like:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}



