/* Custom Navbar Styles - Replacement for Tailwind classes */

/* Container for the navigation buttons */
.navbar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

/* Base button styles */
.navbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Language button specific styles */
.language-btn {
    padding: 0 12px;
    gap: 8px;
}

.language-flag {
    width: 24px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

/* Theme and user buttons - square */
.icon-btn {
    width: 40px;
    padding: 0;
}

/* Add button with green background */
.add-btn {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.add-btn:hover {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
}

/* Material icons styling */
.material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

/* Dropdown menu styles */
.dropdown-menu {
    position: absolute;
    top: 48px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    min-width: 208px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.dropdown-menu.left-0 {
    right: auto;
    left: 0;
}

/* Alpine.js x-show compatibility */
[x-cloak] {
    display: none !important;
}

/* Form styling in dropdowns */
.dropdown-menu form {
    width: 100%;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.dropdown-item.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.dropdown-item.danger {
    color: #dc2626;
}

.dropdown-item.danger:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Separator in dropdown */
.dropdown-separator {
    height: 1px;
    background-color: #e5e7eb;
    margin: 4px 0;
}

/* User info in dropdown */
.user-info {
    padding: 8px 16px 4px;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

/* Relative positioning for dropdown containers */
.dropdown-container {
    position: relative;
}

/* Dark mode support - controlled by Django theme system */
.dark .navbar-container {
    background-color: transparent;
}

.dark .navbar-btn {
    background-color: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

.dark .navbar-btn:hover {
    background-color: #4b5563;
    border-color: #6b7280;
}

.dark .dropdown-menu {
    background-color: #374151;
    border-color: #4b5563;
}

.dark .dropdown-item {
    color: #d1d5db;
}

.dark .dropdown-item:hover {
    background-color: #4b5563;
    color: #f9fafb;
}

.dark .dropdown-item.active {
    background-color: #1e3a8a;
    color: #93c5fd;
}

.dark .user-info {
    color: #f9fafb;
    border-bottom-color: #4b5563;
}

.dark .dropdown-separator {
    background-color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .navbar-container {
        gap: 4px;
        padding: 4px;
    }
    
    .language-btn {
        padding: 0 8px;
    }
    
    .dropdown-menu {
        right: -8px;
        min-width: 200px;
    }
}
