html, body {
    box-sizing: border-box;
    overflow-x: hidden;
}
*, *:before, *:after {
    box-sizing: inherit;
}

.posts-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
}

.status-header {
    background: linear-gradient(135deg, #2323a6 0%, #3a3ad1 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}

.status-count {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.posts-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding: 20px;
}

.post-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.post-image-horizontal {
    width: 140px;
    height: 140px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
    flex-shrink: 0;
}

.post-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.post-details-horizontal {
    flex: 1;
    padding: 18px 18px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-title-horizontal {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2323a6;
    margin-bottom: 6px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
    hyphens: auto;
}

.post-meta-horizontal {
    font-size: 0.92rem;
    color: #6c757d;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-meta-horizontal span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-description-horizontal {
    font-size: 0.92rem;
    color: #495057;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.post-actions-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 18px 0;
    justify-content: center;
    min-width: 120px;
}

.btn-edit-horizontal {
    background: #2323a6;
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-edit-horizontal:hover {
    background: #1a1a8a;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-delete:hover {
    background: #c82333;
    color: white;
}

.btn-stop-publish {
    background: #ffc107;
    color: #2323a6;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-stop-publish:hover {
    background: #e0a800;
    color: #2323a6;
}

.btn-publish {
    background: #28a745;
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-publish:hover {
    background: #218838;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.total-stats {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.total-stats h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.total-stats p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .post-card-horizontal {
        height: auto;
        min-height: 120px;
        flex-direction: column;
    }
    
    .post-image-horizontal {
        width: 100%;
        height: 120px;
    }
    
    .post-details-horizontal {
        padding: 15px;
    }
    
    .post-actions-horizontal {
        padding: 0 15px 15px 15px;
        flex-direction: row;
        justify-content: flex-end;
        gap: 10px;
    }
    
    .post-title-horizontal {
        font-size: 0.95rem;
    }
    
    .post-meta-horizontal {
        font-size: 0.85rem;
    }
    
    .post-description-horizontal {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .post-card-horizontal {
        min-height: 100px;
    }
    
    .post-image-horizontal {
        height: 100px;
    }
    
    .post-details-horizontal {
        padding: 12px;
    }
    
    .post-actions-horizontal {
        padding: 0 12px 12px 12px;
    }
} 