/* Mocking Tailwind Utilities used in Playground & Add Post */
.h-screen {
    height: calc(100vh - 80px);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex-1 {
    flex: 1;
}

.w-1\/2 {
    width: 50%;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Colors - Neutral/Friendly defaults */
.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.border-b {
    border-bottom-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

/* Light mode border */

.text-lg {
    font-size: 1.125rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-700 {
    color: #374151;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gray-500 {
    color: #6b7280;
}

/* Muted text */

.overflow-hidden {
    overflow: hidden;
}

.bg-green-600 {
    background-color: #059669;
}

.text-white {
    color: white;
}

.rounded {
    border-radius: 0.25rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

/* Dark Mode Overrides - Ensure text is visible */
[theme='dark'] .dark\:bg-gray-800,
body[theme='dark'] .dark\:bg-gray-800 {
    background-color: #1f2937;
}

[theme='dark'] .dark\:bg-gray-900,
body[theme='dark'] .dark\:bg-gray-900 {
    background-color: #111827;
}

[theme='dark'] .dark\:text-gray-200,
body[theme='dark'] .dark\:text-gray-200 {
    color: #e5e7eb;
}

[theme='dark'] .dark\:border-gray-700,
body[theme='dark'] .dark\:border-gray-700 {
    border-color: #374151;
}

[theme='dark'] .dark\:bg-black,
body[theme='dark'] .dark\:bg-black {
    background-color: #000000;
}

[theme='dark'] .dark\:text-gray-300,
body[theme='dark'] .dark\:text-gray-300 {
    color: #d1d5db;
}

[theme='dark'] .dark\:border-gray-600,
body[theme='dark'] .dark\:border-gray-600 {
    border-color: #4b5563;
}

[theme='dark'] .dark\:hover\:bg-gray-600:hover,
body[theme='dark'] .dark\:hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

/* Add Post Form Styles - Restore "Better Before" feel (Cleaner, less cramped) */
.max-w-3xl {
    max-width: 48rem;
    margin: 0 auto;
}

.bg-white {
    background-color: white;
}

[theme='dark'] .bg-white {
    background-color: #1f2937;
}

/* Dark mode card */

.p-8 {
    padding: 2rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.block {
    display: block;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-medium {
    font-weight: 500;
}

/* Form Inputs - Clean & Accessible */
input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    /* More padding */
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    margin-top: 0.375rem;
    background-color: #ffffff;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[theme='dark'] input[type="text"],
[theme='dark'] textarea,
[theme='dark'] input[type="file"] {
    background-color: #374151;
    border-color: #4b5563;
    color: white;
}

[theme='dark'] input[type="text"]:focus,
[theme='dark'] textarea:focus {
    border-color: #818cf8;
}

/* Post Type Buttons */
button.type-selector {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

button.active {
    background-color: #6366f1;
    color: white;
}

/* Submit Button */
button[type="submit"] {
    background-color: #4f46e5;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    width: 100%;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #4338ca;
}

/* Initial state hide for auth elements to prevent flickering */
.menu-item-add-post,
.menu-item-logout,
.menu-item-admin,
.menu-item-dashboard {
    display: none;
    /* Javascript will show if logged in */
}

.menu-item-login,
.menu-item-signup {
    display: inline-block;
    /* Default visible, JS hides if logged in */
}