body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
}
header {
    background: linear-gradient(135deg, #007bff, #00aaff);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.feed, .admin-panel {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}
.post {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #e9ecef;
}
.author-name {
    font-weight: 500;
    font-size: 16px;
    color: #007bff;
}
.post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #212529;
}
.post-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #495057;
}
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}
.carousel-inner {
    display: flex;
    transition: transform 0.4s ease-in-out;
}
.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}
.carousel-item img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 300px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}
.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.prev { left: 10px; }
.next { right: 10px; }
.actions {
    display: flex;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
}
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6c757d;
    display: flex;
    align-items: center;
    margin-right: 20px;
    transition: color 0.2s;
}
.action-btn:hover {
    color: #007bff;
}
.action-btn span {
    margin-left: 5px;
    font-weight: 500;
}
.comments-section {
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}
.comment {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.comment-form {
    display: flex;
    margin-top: 10px;
}
.comment-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}
.comment-submit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}
.comment-submit:hover {
    background-color: #0056b3;
}
.admin-panel h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #212529;
}
.admin-form {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}
.admin-form input, .admin-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
}
.admin-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.admin-form button:hover {
    background-color: #0056b3;
}
.admin-form .import-btn {
    background-color: #28a745;
}
.admin-form .import-btn:hover {
    background-color: #218838;
}
.admin-form .delete-btn {
    background-color: #dc3545;
}
.admin-form .delete-btn:hover {
    background-color: #c82333;
}
.login-form {
    max-width: 400px;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}
.login-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}
.login-form button:hover {
    background-color: #0056b3;
}