/* ============================================
   Minimal CSS to replace Tailwind v3 classes
   ============================================ */
#dialogs-area label {
    padding-bottom: 0px;
}
#dialogs-area h2 {
    margin-bottom: 24px;
}


/* Flex utilities */
.flex {
    display: flex;
}

.justify-end {
    justify-content: flex-end;
}

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

/* Gap utilities */
.gap-3 {
    gap: 0.75rem;
}

/* Spacing utilities */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

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

.mt-1 {
    margin-top: 0.25rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

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

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

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

.p-0 {
    padding: 0;
}

/* Border utilities */
.border-t {
    border-top: 1px solid #e2e8f0;
}

.border-b {
    border-bottom: 1px solid #e2e8f0;
}

.border {
    border: 1px solid #cbd5e1;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.border-slate-300 {
    border-color: #cbd5e1;
}

/* Border radius */
.rounded-2xl {
    border-radius: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-md {
    border-radius: 0.375rem;
}

/* Text utilities */
.text-sm {
    font-size: 1rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.5rem;
    line-height: 1.75rem;
}

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

.font-semibold {
    font-weight: 600;
}

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

.text-white {
    color: #ffffff;
}

.text-slate-900 {
    color: #0f172a;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-400 {
    color: #94a3b8;
}

/* Background utilities */
.bg-white {
    background-color: #ffffff;
}

.bg-black\/70 {
    background-color: rgba(0, 0, 0, 0.7);
}

.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.4);
}

.bg-slate-900 {
    background-color: #0f172a;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

/* Width utilities */
.w-full {
    width: 100%;
}

.max-w-xl {
    max-width: 36rem;
}

.h-9 {
    height: 2.25rem;
}

.w-9 {
    width: 2.25rem;
}

/* Position utilities */
.absolute {
    position: absolute;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.z-50 {
    z-index: 50;
}

/* Display utilities */
.block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

/* Button styles */
button {
    cursor: pointer;
}

/* Dialog styles */
dialog {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

dialog form {
    overflow: hidden;
}

/* Input and textarea styles */
input[type="text"],
input[type="number"],
input[type="file"],
textarea {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-size: 0.875rem;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"],
input[type="number"] {
    padding: 0.75rem 1rem;
}

textarea {
    padding: 0.75rem 1rem;
    resize: vertical;
}

input[type="file"] {
    padding: 0.5rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.8);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

/* File input button */
input[type="file"]::file-selector-button {
    margin-right: 1rem;
    border-radius: 0.375rem;
    border: 0;
    background-color: #0f172a;
    padding: 0.5rem 1rem;
    color: #ffffff;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background-color: #1e293b;
}

/* Button hover states */
.bg-slate-900:hover,
.bg-black\/70:hover {
    background-color: #1e293b;
}

.hover\:bg-slate-50:hover {
    background-color: #f8fafc;
}

.hover\:bg-slate-800:hover {
    background-color: #1e293b;
}

.hover\:border-slate-400:hover {
    border-color: #94a3b8;
}

/* Focus states */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.8);
}

.focus\:ring-slate-300:focus {
    box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.8);
}

.focus\:ring-slate-500:focus {
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.8);
}

.focus\:ring-white\/80:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Transitions */
.transition {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.duration-200 {
    transition-duration: 0.2s;
}

/* Shadow */
.shadow {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Backdrop blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* File input specific styling */
input[type="file"] {
    display: block;
}

/* Label styling */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

/* Hide hidden inputs */
input[type="hidden"] {
    display: none;
}

/* Responsive dialog */
@media (max-width: 640px) {
    dialog {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
}