/* Neo-brutalism custom styles */
.neo-input {
    border: 3px solid #000 !important;
    box-shadow: 3px 3px 0 #000 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
    background-color: white !important;
}

/* Remove focus effect from neo-input */
/* .neo-input:focus {
    box-shadow: 6px 6px 0 #000 !important;
    transform: translate(-3px, -3px) !important;
    outline: none !important;
} */

.neo-button {
    background-color: #2563eb;
    color: white !important;
    border: 3px solid #000 !important;
    box-shadow: 3px 3px 0 #000 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.neo-button:active {
    box-shadow: 0px 0px 0 #000 !important;
    transform: translate(3px, 3px) !important;
}

.neo-button.bg-gray-100 {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

.neo-card {
    background-color: white !important;
    border: 3px solid #000 !important;
    box-shadow: 6px 6px 0 #000 !important;
    border-radius: 4px !important;
    padding: 16px !important;
    transition: all 0.2s ease !important;
}

/* Add a specific style for the navbar */
.nav-card {
    background-color: #2563eb !important;
    border: 3px solid #000 !important;
    box-shadow: 6px 6px 0 #000 !important;
    border-radius: 4px !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

/* Only buttons should have hover effects */
.neo-button:hover {
    box-shadow: 6px 6px 0 #000 !important;
    transform: translate(-3px, -3px) !important;
}

.neo-button:active {
    box-shadow: 0px 0px 0 #000 !important;
    transform: translate(3px, 3px) !important;
}

.neo-tag {
    background-color: #f3f4f6 !important;
    border: 2px solid #000 !important;
    box-shadow: 2px 2px 0 #000 !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
    line-height: 1rem !important;
    display: inline-block !important;
}

.neo-select {
    border: 3px solid #000 !important;
    box-shadow: 3px 3px 0 #000 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
    background-color: white !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

/* Remove focus effect from neo-select */
/* .neo-select:focus {
    box-shadow: 6px 6px 0 #000 !important;
    transform: translate(-3px, -3px) !important;
    outline: none !important;
} */

/* Container tree styles */
.neo-card-inner {
    background-color: white !important;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease !important;
}

/* Remove hover effect from neo-card-inner */
/* .neo-card-inner:hover {
    box-shadow: 4px 4px 0 #000 !important;
    transform: translate(-2px, -2px) !important;
} */

/* Ensure search icon remains visible */
.search-icon-container {
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Search container styling */
.search-container {
    border: 3px solid #000 !important;
    box-shadow: 3px 3px 0 #000 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    background-color: white !important;
}

/* Remove focus-within effect from search container */
/* .search-container:focus-within {
    box-shadow: 6px 6px 0 #000 !important;
    transform: translate(-3px, -3px) !important;
} */

/* Keep existing markdown styles */
.markdown-content h1 {
    font-size: 2em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.markdown-content h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.markdown-content h3 {
    font-size: 1.25em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.markdown-content p {
    margin-bottom: 1em;
}

.markdown-content ul {
    list-style-type: disc;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.markdown-content ol {
    list-style-type: decimal;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.markdown-content li {
    margin-bottom: 0.25em;
}

.markdown-content code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
    font-family: monospace;
}

.markdown-content pre {
    background-color: #f3f4f6;
    padding: 1em;
    border-radius: 0.5em;
    margin-bottom: 1em;
    overflow-x: auto;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content a {
    color: #2563eb;
    text-decoration: underline;
}

.markdown-content a:hover {
    color: #1d4ed8;
}

.markdown-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    margin-left: 0;
    margin-bottom: 1em;
    color: #4b5563;
}

/* Add consistent button height and alignment */
.nav-button {
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    padding: 0 16px !important;
}

.nav-button.icon-only {
    padding: 0 10px !important;
}

/* Print queue button styles */
.print-queue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.print-queue-btn.in-queue {
    background-color: #fef3c7;
    /* Yellow background */
    border-color: #d97706;
    /* Amber border */
    color: #92400e !important;
    /* Amber text */
}

.print-queue-btn.in-queue:hover {
    background-color: #fde68a;
}

/* Remove all mobile menu toggle CSS since we're using Tailwind's peer classes */

/* Dismissable message styles */
.message-dismissible {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.message-dismissible.dismissing {
    opacity: 0;
    transform: translateY(-10px);
}

/* Neobrutalism styling for dropzone */
.dropzone-form {
    border: 3px dashed #000 !important;
    background-color: #faf0ff !important;
    /* Very light pastel purple */
    border-radius: 0 !important;
    min-height: 150px !important;
    padding: 20px !important;
    box-shadow: 6px 6px 0px #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dropzone-form .disabled {
    background-color: #f0e6f5 !important;
    /* More opaque, greyish pastel purple */
    border-style: dashed !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 6px 6px 0px #000 !important;
}

.dropzone-form .dz-message {
    margin: 0 !important;
    font-weight: 800 !important;
    color: #000 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: -0.5px !important;
}

.dropzone-form .dz-preview~.dz-message {
    display: none !important;
}

.dropzone-form .disabled .dz-message {
    color: #6b7280 !important;
}

.dropzone-form .dz-preview {
    border: 3px solid #000 !important;
    box-shadow: 6px 6px 0px #000 !important;
    margin: 10px !important;
    padding: 15px !important;
    background-color: white !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.dropzone-form .dz-preview:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 8px 8px 0px #000 !important;
}

.dropzone-form .dz-preview .dz-remove {
    border: 3px solid #000 !important;
    background-color: white !important;
    color: #000 !important;
    box-shadow: 4px 4px 0px #000 !important;
    font-weight: 800 !important;
    padding: 5px 10px !important;
    transition: all 0.2s ease !important;
}

.dropzone-form .dz-preview .dz-remove:hover {
    box-shadow: 2px 2px 0px #000 !important;
    transform: translate(2px, 2px) !important;
}

/* Dropzone preview template styling */
.dropzone-form .dz-preview {
    border: 3px solid #000 !important;
    box-shadow: 6px 6px 0px #000 !important;
    margin: 10px !important;
    padding: 15px !important;
    background-color: white !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.dropzone-form .dz-preview:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 8px 8px 0px #000 !important;
}

.dropzone-form .dz-preview.dz-processing {
    opacity: 0.8 !important;
}

.dropzone-form .dz-preview.dz-success {
    border-color: #10B981 !important;
    box-shadow: 6px 6px 0px #10B981 !important;
}

.dropzone-form .dz-preview.dz-error {
    border-color: #EF4444 !important;
    box-shadow: 6px 6px 0px #EF4444 !important;
}

.dropzone-form .dz-details {
    margin-bottom: 10px !important;
    font-size: 0.75rem !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 600 !important;
}

.dropzone-form .dz-filename {
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
    flex: 0 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: -0.5px !important;
}

.dropzone-form .dz-size {
    color: #6B7280 !important;
    font-size: 0.75rem !important;
    flex: 0 0 auto !important;
    font-weight: 600 !important;
}

.dropzone-form .dz-size:after {
    content: "" !important;
}

.dropzone-form .dz-progress {
    height: 6px !important;
    background-color: #E5E7EB !important;
    margin: 10px 0 !important;
    border: 2px solid #000 !important;
    box-shadow: 2px 2px 0px #000 !important;
}

.dropzone-form .dz-upload {
    display: block !important;
    height: 100% !important;
    background-color: #3B82F6 !important;
    width: 0% !important;
    transition: width 0.3s ease !important;
}

.dropzone-form .dz-success-mark,
.dropzone-form .dz-error-mark {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    display: none !important;
    z-index: 1 !important;
    background-color: white !important;
    border: 2px solid !important;
    box-shadow: 2px 2px 0px #000 !important;
}

.dropzone-form .dz-success-mark {
    border-color: #10B981 !important;
    box-shadow: 2px 2px 0px #10B981 !important;
}

.dropzone-form .dz-error-mark {
    border-color: #EF4444 !important;
    box-shadow: 2px 2px 0px #EF4444 !important;
}

.dropzone-form .dz-success-mark::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    width: 8px !important;
    height: 12px !important;
    border-bottom: 2px solid #10B981 !important;
    border-right: 2px solid #10B981 !important;
}

.dropzone-form .dz-error-mark::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 12px !important;
    height: 12px !important;
    background:
        linear-gradient(45deg, transparent 45%, #EF4444 45%, #EF4444 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, #EF4444 45%, #EF4444 55%, transparent 55%) !important;
}

.dropzone-form .dz-preview.dz-success .dz-success-mark,
.dropzone-form .dz-preview.dz-error .dz-error-mark {
    display: block !important;
}

.dropzone-form .dz-error-message {
    color: #EF4444 !important;
    font-size: 0.875rem !important;
    margin-top: 5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.5px !important;
}

.dropzone-form img[data-dz-thumbnail] {
    max-width: 100% !important;
    max-height: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 10px 0 !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border: 2px solid #000 !important;
    box-shadow: 4px 4px 0px #000 !important;
}

.dropzone-form .dz-success-mark svg,
.dropzone-form .dz-error-mark svg {
    display: none !important;
}
