:root {
    --background-color: #fff;
    --text-color: #000;
    --button-bg-color: #007bff;
    --button-text-color: #fff;
    --button-hover-bg-color: #007bff;
    --border-color: #ccc;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --error-color: #dc3545;
    --primary-color: #007bff;
    --hover-primary-color: #0056b3;
    --border-radius: 5px;
    --button-padding: 0.5rem 1rem;
    --input-padding: 0.5rem;
    --font-size-small: 0.9rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.2rem;
	--tab-bg-color: #fff;
}

[data-theme="dark"] {
    --background-color: #1e2124;
    --text-color: #fff;
    --button-bg-color: #282b30;
    --button-text-color: #fff;
    --button-hover-bg-color: #424549;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --primary-color: #007bff;
    --hover-primary-color: #0056b3;
    --error-color: #b02a37;
	--tab-bg-color: #333333;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
	justify-content: center;
}

.tab-button {
    background-color: var(--button-bg-color);
    border: none;
    padding: var(--button-padding);
    cursor: pointer;
    font-weight: bold;
    color: var(--button-text-color);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.tab-button.active {
    background-color: var(--button-hover-bg-color);
    color: var(--button-text-color);
}
.tab-content{
	overflow-y: auto;
	overflow-x: hidden;
	height: 89%;
	border-radius: 10px;
}
#add-post-top{
	background-color: var(--button-bg-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
	padding: 0.3rem 1rem;
	font-size: 20px;
    color: var(--button-text-color);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
	margin-bottom: 1rem;
}
.tab-content::-webkit-scrollbar {
    display: none;
}
.tab {
    display: none;
    padding: 1rem;
    background-color: var(--tab-bg-color);
    border: none;
    border-radius: var(--border-radius);
}
.tab.active {
    display: block;
}

.post-container {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.post-container h2 {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-large);
    color: var(--text-color);
}

.post-container p {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-medium);
    color: var(--text-color);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-small);
    color: var(--button-bg-color);
}

.post-footer button {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: var(--font-size-small);
    transition: background-color 0.3s ease;
}

.post-footer button:hover {
    background-color: var(--error-color);
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.carousel-images {
    display: flex;
    overflow: hidden;
    width: 100%;
    justify-content: center;
}

.carousel-images img {
    border-radius: var(--border-radius);
    display: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: var(--input-padding);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.modal-content button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: var(--button-padding);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: var(--hover-primary-color);
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-file-input {
    display: inline-block;
    padding: var(--input-padding);
    border: 2px dashed var(--border-color);
    cursor: pointer;
    text-align: center;
    border-radius: var(--border-radius);
    color: #555;
    font-size: var(--font-size-medium);
    position: relative;
}

.custom-file-input:hover {
    background-color: #f5f5f5;
}

.image-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.image-preview img {
    max-width: 70px;
    max-height: 70px;
    border-radius: var(--border-radius);
}

img {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
}

h2 {
    color: var(--text-color);
}
