/* ... CSS nyingine haijabadilika hapa ... */

/* Homepage specific styles (sasa itajaza skrini nzima) */
header {
    background-color: #CE9233;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 0;
    margin-bottom: 0;
}

header h1 {
    margin: 0;
}

main {
    width: 100%; /* Sasa main container inajaza upana wote */
    padding: 20px; /* Baki na nafasi ndogo pembeni ili maandishi yasiguse ukingo */
    box-sizing: border-box;
}

article {
    width: 100%; /* Kila post sasa inajaza upana wote */
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0;
    box-shadow: none;
}

article h2 {
    color: #333;
    margin-top: 0;
}

.post-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

article img, article video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 4px;
}
/* Login form container */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Login form header */
.login-container h2 {
    text-align: center;
    color: #333333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form input fields */
.login-container form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-container form input:focus {
    border-color: #CE9233; /* Highlight with primary color on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Login button */
.login-container form button {
    width: 100%;
    padding: 12px;
    background-color: #CE9233; /* Matches the navigation button color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.login-container form button:hover {
    background-color: #CE9233; /* A slightly darker blue for hover effect */
}

/* Optional: Add this to the body for a better layout */
body {
    background-color: #f8f9fa; /* A light grey background for the whole page */
}
/* Container for dashboard forms */
.dashboard-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-container h2 {
    text-align: center;
    color: #444;
}

/* Form inputs and buttons */
.dashboard-container form input[type="text"],
.dashboard-container form input[type="file"],
.dashboard-container form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.dashboard-container form textarea {
    resize: vertical;
    min-height: 150px;
}

.dashboard-container form button {
    width: 100%;
    padding: 10px;
    background-color: #CE9233;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.dashboard-container form button:hover {
    background-color: #CE9233;
}
/* Styles for the "Manage Existing Posts" container */
.dashboard-container h2 {
    text-align: center;
    color: #444;
}

/* Styles for each individual post item */
.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Style for the post title */
.post-item span {
    font-weight: 600;
    color: #333;
    flex-grow: 1; /* Allows the title to take up available space */
}

/* Styles for the delete button */
.post-item form button {
    padding: 8px 16px;
    background-color: #28a745; /* A clear red color for deletion */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.post-item form button:hover {
    background-color: #c82333; /* A slightly darker red on hover */
}
/* Style for post management links */
.post-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.post-actions .edit-btn {
    padding: 8px 16px;
    background-color: #28a745; /* A green color for edit */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.post-actions .edit-btn:hover {
    background-color: #218838;
}