/* Menu styles */
.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode styles */
:root.dark {
    color-scheme: dark;
}

:root.dark body {
    background-color: #111827;
    color: #F9FAFB;
}

:root.dark .bg-white,
:root.dark .bg-gray-100 {
    background-color: #1F2937;
}

:root.dark input,
:root.dark select,
:root.dark textarea {
    background-color: #374151;
    border-color: #4B5563;
    color: #F9FAFB;
}

:root.dark input::placeholder {
    color: #9CA3AF;
}

:root.dark .text-gray-900,
:root.dark .text-gray-800,
:root.dark .text-gray-700 {
    color: #F9FAFB;
}

:root.dark .text-gray-600 {
    color: #9CA3AF;
}

:root.dark .border-gray-200,
:root.dark .border-gray-300 {
    border-color: #374151;
}

:root.dark .hover\:bg-gray-100:hover {
    background-color: #374151;
}

:root.dark .shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

:root.dark .ring-black {
    --tw-ring-color: #374151;
}

:root.dark .ring-opacity-5 {
    --tw-ring-opacity: 0.7;
}

/* Ensure transitions are smooth */
*, *::before, *::after {
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.fixed-menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: inherit;
}

body {
    padding-top: 64px;
}

/* Excel-style table styles */
.excel-header {
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    background-color: #F3F4F6;
    border: 1px solid #D1D5DB;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.excel-header:hover {
    background-color: #E5E7EB;
}

:root.dark .excel-header {
    background-color: #374151;
    color: #D1D5DB;
    border-color: #4B5563;
}

:root.dark .excel-header:hover {
    background-color: #4B5563;
}

.excel-filter {
    padding: 4px;
    background-color: #F9FAFB;
    border: 1px solid #D1D5DB;
}

:root.dark .excel-filter {
    background-color: #1F2937;
    border-color: #4B5563;
}

.filter-input {
    width: 100%;
    padding: 4px 6px;
    font-size: 11px;
    border: 1px solid #D1D5DB;
    border-radius: 3px;
    background-color: white;
    color: #374151;
}

.filter-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px #3B82F6;
}

:root.dark .filter-input {
    background-color: #374151;
    border-color: #4B5563;
    color: #F9FAFB;
}

:root.dark .filter-input:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 1px #60A5FA;
}

.excel-cell {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #E5E7EB;
    background-color: white;
    color: #1F2937;
    white-space: nowrap;
}

:root.dark .excel-cell {
    background-color: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
}

.excel-row:nth-child(even) .excel-cell {
    background-color: #F9FAFB;
}

:root.dark .excel-row:nth-child(even) .excel-cell {
    background-color: #111827;
}

.excel-row:hover .excel-cell {
    background-color: #EFF6FF !important;
}

:root.dark .excel-row:hover .excel-cell {
    background-color: #1E3A8A !important;
}

/* Prevent transition on excel cells for better performance */
.excel-cell, .excel-header, .excel-filter {
    transition: none;
}

/* Color select dropdown */
.color-select {
    min-width: 100px;
    font-weight: 600;
}

.color-select option {
    padding: 4px 8px;
    font-weight: 600;
}

:root.dark .color-select {
    border-color: #4B5563;
}
