/* =============================================
   Sidebar
   ============================================= */
.sidebar {
    width: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a1f36 0%, #1e2a4a 100%);
}

.sidebar .nav-link {
    padding: 10px 15px;
    margin: 2px 0;
    transition: background-color 0.2s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.15);
    border-radius: 6px;
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

/* =============================================
   Main Content
   ============================================= */
.main-content {
    min-height: 100vh;
    background-color: #f5f7fb;
    overflow-x: hidden;
}

.top-bar {
    height: 56px;
}

/* =============================================
   Category Badge
   ============================================= */
.badge-category {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    color: #fff;
    display: inline-block;
}

/* =============================================
   Release Cards (Public)
   ============================================= */
.release-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.release-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* =============================================
   Featured Image Thumbnail (Dashboard)
   ============================================= */
.featured-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* =============================================
   Author Avatar
   ============================================= */
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

/* =============================================
   Release Content Area
   ============================================= */
.release-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.release-content h1,
.release-content h2,
.release-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.release-content p {
    line-height: 1.7;
}

.release-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

.release-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* =============================================
   Status Badges
   ============================================= */
.status-draft {
    background-color: #ffc107;
    color: #000;
}

.status-published {
    background-color: #198754;
    color: #fff;
}

/* =============================================
   Dashboard Table
   ============================================= */
.table-releases td {
    vertical-align: middle;
}

.table-releases th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom-width: 1px;
}

/* =============================================
   Summernote Overrides
   ============================================= */
.note-editor .note-editable {
    min-height: 350px;
    font-size: 1rem;
    line-height: 1.7;
}

.note-editor.note-frame {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

/* =============================================
   Public Page Header
   ============================================= */
.public-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

/* =============================================
   Login Page
   ============================================= */
.login-card {
    max-width: 420px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.login-logo {
    font-size: 2.5rem;
    color: #0d6efd;
}

/* =============================================
   Empty State
   ============================================= */
.empty-state-icon {
    font-size: 4rem;
    color: #dee2e6;
}

/* =============================================
   No Image Placeholder (Dashboard)
   ============================================= */
.no-image-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.2rem;
}

/* =============================================
   Release List (Public Feed)
   ============================================= */
.release-list {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.release-list .list-group-item {
    border-left: none;
    border-right: none;
    transition: background-color 0.15s;
}

.release-list .list-group-item:first-child {
    border-top: none;
}

.release-list .list-group-item:last-child {
    border-bottom: none;
}

.release-list .list-group-item:hover {
    background-color: #f8f9fa;
}

.release-list .list-group-item h6 {
    margin-bottom: 4px;
}
