/* Reset & base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f4dc; /* light cream background */
    color: #4f5f73; /* soft slate text */
}

/* Sidebar */
.sidebar {
    width: 160px;
    height: 100vh;
    background-color: #718096; /* slate gray */
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
}

.sidebar img {
    display: block;
    margin: 0 auto 20px;
    max-width: 120px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.sidebar a:hover {
    background-color: #e0e0c4; /* lighter cream */
}

.container {
    background: #fefee0;
    padding: 30px;
    max-width: 400px;
    margin: 50px auto;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #ffffe0;
}

button {
    background-color: #4f5f73;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #2d3748;
}
/* Home label */
.home-label {
    text-align: center;
    font-size: 2rem;
    margin-top: 100px;
}

/* Top Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 160px;
    right: 0;
    height: 60px;
    background-color: #718096;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar .search-box {
    background-color: #fefee0;
    border-radius: 4px;
    padding: 4px;
}

.navbar input[type="text"] {
    border: none;
    padding: 6px;
    background: transparent;
    width: 200px;
}

.navbar button {
    background-color: #4f5f73;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.navbar button:hover {
    background-color: #2d3748;
}

.main {
    margin-left: 160px;
    padding: 80px 20px 20px 20px;
}

/* Container for forms/blocks */
.container {
    background: #fefee0;
    padding: 30px;
    max-width: 700px;
    margin: 30px auto;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
    border-radius: 10px;
}

/* Forms & buttons */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #ffffe0;
}

/* Post display */
.post {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}

.post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.post-meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.post form {
    margin-top: 10px;
}

.post input[type="text"] {
    padding: 6px;
    width: calc(100% - 100px);
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #ffffe0;
    margin-right: 6px;
}

.post button {
    background-color: #e53e3e;
    margin-top: 5px;
}

.post button:hover {
    background-color: #c53030;
}


/* Admin dashboard tables */
table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    margin-top: 20px;
}

table th, table td {
    padding: 10px 12px;
    border: 1px solid #ccc;
    text-align: left;
}

table th {
    background-color: #e2e8f0; /* light slate */
    color: #2d3748;
}

table td form {
    display: inline;
}

table button {
    font-size: 0.9em;
    padding: 6px 10px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .main {
        margin-left: 0;
    }
    .navbar {
        left: 0;
    }
}

/* Message Threads */
.message-thread {
    background-color: #fff;
    border-left: 5px solid #4f5f73;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.message-thread strong {
    color: #4f5f73;
}

.message-thread p {
    margin: 6px 0;
}

.message-thread .post-meta {
    font-size: 0.85em;
    color: #666;
}


