/* Dark Theme Specific Styles */

/* Enhanced dark mode shadows and borders */
[data-theme="dark"] .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode specific gradients */
[data-theme="dark"] .gradient-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #0f172a 100%) !important;
}

/* Dark mode chart backgrounds */
[data-theme="dark"] canvas {
    background-color: transparent !important;
}

/* Dark mode scrollbars */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Dark mode selection */
[data-theme="dark"] ::selection {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Dark mode focus rings */
[data-theme="dark"] *:focus {
    outline-color: #60a5fa !important;
}

/* Dark mode placeholder text */
[data-theme="dark"] ::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

/* Dark mode disabled elements */
[data-theme="dark"] :disabled {
    background-color: #374151 !important;
    color: #6b7280 !important;
    cursor: not-allowed;
}

/* Dark mode hover states for interactive elements */
[data-theme="dark"] .hover\:bg-gray-50:hover {
    background-color: #374151 !important;
}

[data-theme="dark"] .hover\:bg-gray-100:hover {
    background-color: #4b5563 !important;
}

/* Dark mode borders for cards and containers */
[data-theme="dark"] .border {
    border-color: #374151 !important;
}

[data-theme="dark"] .border-t {
    border-top-color: #374151 !important;
}

[data-theme="dark"] .border-b {
    border-bottom-color: #374151 !important;
}

[data-theme="dark"] .border-l {
    border-left-color: #374151 !important;
}

[data-theme="dark"] .border-r {
    border-right-color: #374151 !important;
}

/* Dark mode divide utilities */
[data-theme="dark"] .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: #374151 !important;
}

/* Dark mode ring utilities */
[data-theme="dark"] .ring-gray-300 {
    --tw-ring-color: #4b5563 !important;
}

/* Dark mode text selection for code blocks */
[data-theme="dark"] pre::selection,
[data-theme="dark"] code::selection {
    background-color: #4b5563;
}

/* Dark mode improvements for specific components */
[data-theme="dark"] .bg-gradient-to-r {
    background: linear-gradient(to right, #1f2937, #111827) !important;
}

[data-theme="dark"] .bg-gradient-to-b {
    background: linear-gradient(to bottom, #1f2937, #111827) !important;
}

/* Dark mode for badges and pills */
[data-theme="dark"] .badge,
[data-theme="dark"] .pill {
    background-color: #374151 !important;
    color: #d1d5db !important;
    border-color: #4b5563 !important;
}

/* Dark mode for tooltips */
[data-theme="dark"] .tooltip {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

/* Dark mode for progress bars */
[data-theme="dark"] .progress-bar {
    background-color: #374151 !important;
}

[data-theme="dark"] .progress-fill {
    background-color: #3b82f6 !important;
}

/* Dark mode for chat interface */
[data-theme="dark"] .chat-container {
    background-color: #1f2937 !important;
}

[data-theme="dark"] .chat-messages {
    background-color: #1f2937 !important;
}

/* Dark mode for voice status indicators */
[data-theme="dark"] #voiceStatus {
    color: #d1d5db !important;
}

[data-theme="dark"] .voice-wave {
    background: #ef4444 !important;
}

/* Dark mode for keyboard shortcuts */
[data-theme="dark"] kbd {
    background-color: #374151 !important;
    color: #f9fafb !important;
    border: 1px solid #4b5563 !important;
}

/* Dark mode for chat input placeholder */
[data-theme="dark"] #messageInput::placeholder {
    color: #9ca3af !important;
}

/* Dark mode for quick action buttons hover states */
[data-theme="dark"] .quick-action-btn:hover {
    background-color: #374151 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode for category cards */
[data-theme="dark"] .category-card {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .category-card:hover {
    background-color: #374151 !important;
}

/* Dark mode for category headers */
[data-theme="dark"] .category-header {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

/* Dark mode for form elements in categories */
[data-theme="dark"] .category-form input,
[data-theme="dark"] .category-form select,
[data-theme="dark"] .category-form textarea {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] .category-form input:focus,
[data-theme="dark"] .category-form select:focus,
[data-theme="dark"] .category-form textarea:focus {
    background-color: #1f2937 !important;
    border-color: #3b82f6 !important;
}

/* Dark mode for radio buttons and checkboxes in categories */
[data-theme="dark"] .category-form input[type="radio"],
[data-theme="dark"] .category-form input[type="checkbox"] {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

/* Dark mode for category tips section */
[data-theme="dark"] .category-tips {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

/* Dark mode for profile page */
[data-theme="dark"] .profile-card {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .profile-info-item {
    border-color: #374151 !important;
}

[data-theme="dark"] .profile-info-item:hover {
    background-color: #374151 !important;
}

/* Dark mode for profile form elements */
[data-theme="dark"] .profile-form input,
[data-theme="dark"] .profile-form select,
[data-theme="dark"] .profile-form textarea {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] .profile-form input:focus,
[data-theme="dark"] .profile-form select:focus,
[data-theme="dark"] .profile-form textarea:focus {
    background-color: #1f2937 !important;
    border-color: #3b82f6 !important;
}

/* Dark mode for delete modal */
[data-theme="dark"] .delete-modal {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

/* Dark mode for danger zone */
[data-theme="dark"] .danger-zone {
    background-color: #1f2937 !important;
    border-color: #dc2626 !important;
}

/* Dark mode for login/register forms */
[data-theme="dark"] .login-form input,
[data-theme="dark"] .register-form input {
    background-color: #374151 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] .login-form input::placeholder,
[data-theme="dark"] .register-form input::placeholder {
    color: #9ca3af !important;
}

[data-theme="dark"] .login-form input:focus,
[data-theme="dark"] .register-form input:focus {
    background-color: #374151 !important;
    border-color: #3b82f6 !important;
    color: #f9fafb !important;
}

/* Dark mode for auth buttons - Fix for login button visibility */
[data-theme="dark"] .auth-button {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .auth-button:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

[data-theme="dark"] .auth-button:focus {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Specific fix for login button */
[data-theme="dark"] button[type="submit"] {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] button[type="submit"]:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* Dark mode for auth form inputs */
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="text"] {
    background-color: #374151 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] input[type="text"]:focus {
    background-color: #374151 !important;
    border-color: #3b82f6 !important;
    color: #f9fafb !important;
}/* 
Dark mode for checkboxes and radio buttons */
[data-theme="dark"] input[type="checkbox"],
[data-theme="dark"] input[type="radio"] {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] input[type="checkbox"]:checked,
[data-theme="dark"] input[type="radio"]:checked {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* Dark mode for notification boxes */
[data-theme="dark"] .bg-yellow-50 {
    background-color: #451a03 !important;
    border-color: #92400e !important;
}

[data-theme="dark"] .text-yellow-800 {
    color: #fbbf24 !important;
}

[data-theme="dark"] .text-yellow-600 {
    color: #f59e0b !important;
}

/* Dark mode for auth form labels */
[data-theme="dark"] .register-form label,
[data-theme="dark"] .login-form label {
    color: #f9fafb !important;
}

/* Dark mode for links in auth forms */
[data-theme="dark"] .register-form a,
[data-theme="dark"] .login-form a {
    color: #f9fafb !important;
}

[data-theme="dark"] .register-form a:hover,
[data-theme="dark"] .login-form a:hover {
    color: #d1d5db !important;
}/* Da
rk mode for dashboard summary stats cards */
[data-theme="dark"] .bg-green-50 {
    background-color: #064e3b !important;
}

[data-theme="dark"] .bg-red-50 {
    background-color: #7f1d1d !important;
}

[data-theme="dark"] .bg-blue-50 {
    background-color: #1e3a8a !important;
}

[data-theme="dark"] .text-green-600 {
    color: #10b981 !important;
}

[data-theme="dark"] .text-green-700 {
    color: #059669 !important;
}

[data-theme="dark"] .text-red-600 {
    color: #ef4444 !important;
}

[data-theme="dark"] .text-red-700 {
    color: #dc2626 !important;
}

[data-theme="dark"] .text-blue-600 {
    color: #3b82f6 !important;
}

[data-theme="dark"] .text-blue-700 {
    color: #2563eb !important;
}

/* Dark mode for all dashboard cards */
[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

/* Dark mode for dashboard headers and text */
[data-theme="dark"] .text-gray-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-700 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-600 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-gray-500 {
    color: var(--text-secondary) !important;
}

/* Dark mode for form elements in dashboard */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-secondary) !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    background-color: var(--bg-secondary) !important;
    border-color: #3b82f6 !important;
    color: var(--text-primary) !important;
}

/* Dark mode for table headers */
[data-theme="dark"] .bg-gray-50 {
    background-color: #374151 !important;
}

/* Dark mode for table rows */
[data-theme="dark"] .hover\:bg-gray-50:hover {
    background-color: #374151 !important;
}

/* Dark mode for borders */
[data-theme="dark"] .border-gray-200 {
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--border-primary) !important;
}

/* Dark mode for yearly comparison cards */
[data-theme="dark"] .text-green-900 {
    color: #10b981 !important;
}

[data-theme="dark"] .text-red-900 {
    color: #ef4444 !important;
}/
* Dark mode for edit transaction form */
[data-theme="dark"] .edit-transaction-form {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .transaction-type-card {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-secondary) !important;
}

[data-theme="dark"] .transaction-type-card:hover {
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .transaction-type-card.selected-income {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

[data-theme="dark"] .transaction-type-card.selected-expense {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* Dark mode for transaction info section */
[data-theme="dark"] .transaction-info {
    background-color: var(--bg-tertiary) !important;
}

/* Dark mode for form inputs in edit transaction */
[data-theme="dark"] .edit-transaction-form input,
[data-theme="dark"] .edit-transaction-form select {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-secondary) !important;
}

[data-theme="dark"] .edit-transaction-form input:focus,
[data-theme="dark"] .edit-transaction-form select:focus {
    background-color: var(--bg-secondary) !important;
    border-color: #3b82f6 !important;
    color: var(--text-primary) !important;
}

/* Dark mode for select options */
[data-theme="dark"] select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}/* Dark
 mode for savings goals */
[data-theme="dark"] .savings-goal-card {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .savings-goal-header {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-primary) !important;
}

/* Dark mode for progress bars */
[data-theme="dark"] .progress-bar-bg {
    background-color: #374151 !important;
}

/* Dark mode for savings goal form */
[data-theme="dark"] .savings-form input,
[data-theme="dark"] .savings-form select,
[data-theme="dark"] .savings-form textarea {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-secondary) !important;
}

[data-theme="dark"] .savings-form input:focus,
[data-theme="dark"] .savings-form select:focus,
[data-theme="dark"] .savings-form textarea:focus {
    background-color: var(--bg-secondary) !important;
    border-color: #3b82f6 !important;
    color: var(--text-primary) !important;
}

/* Dark mode for color picker */
[data-theme="dark"] input[type="color"] {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-secondary) !important;
}

/* Dark mode for preview card */
[data-theme="dark"] .preview-card {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-primary) !important;
}

/* Dark mode for priority badges */
[data-theme="dark"] .priority-high {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .priority-medium {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

[data-theme="dark"] .priority-low {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

/* Dark mode for status indicators */
[data-theme="dark"] .status-active {
    background-color: #3b82f6 !important;
}

[data-theme="dark"] .status-completed {
    background-color: #10b981 !important;
}

[data-theme="dark"] .status-paused {
    background-color: #f59e0b !important;
}/* Dark 
mode for mobile transaction cards */
[data-theme="dark"] .transaction-card {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .transaction-card:hover {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .transaction-icon-bg {
    background-color: var(--bg-tertiary) !important;
}

/* Dark mode for transaction type badges */
[data-theme="dark"] .transaction-type-income {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

[data-theme="dark"] .transaction-type-expense {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

/* Dark mode for mobile card animations */
[data-theme="dark"] .mobile-card-hover {
    transition: all 0.2s ease-in-out;
}

[data-theme="dark"] .mobile-card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}/* Mobil
e transaction cards improvements */
[data-theme="dark"] .transaction-card {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .transaction-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease-in-out;
}

/* Smooth transitions for mobile cards */
@media (max-width: 768px) {
    .transaction-card {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .transaction-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.3);
    }
    
    .transaction-card:active {
        transform: translateY(0px) scale(0.98);
        box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.2);
    }
}

/* Dark mode specific mobile card shadows */
[data-theme="dark"] .transaction-card:hover {
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .transaction-card:active {
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.3) !important;
}

/* Chevron icon animation */
.transaction-card:hover .fa-chevron-right {
    transform: translateX(2px);
    transition: transform 0.2s ease-in-out;
}/* Da
rk mode for budget pages */
[data-theme="dark"] .budget-card {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="dark"] .budget-progress-bg {
    background-color: #374151 !important;
}

/* Dark mode for budget form */
[data-theme="dark"] .budget-form input,
[data-theme="dark"] .budget-form select {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-secondary) !important;
}

[data-theme="dark"] .budget-form input:focus,
[data-theme="dark"] .budget-form select:focus {
    background-color: var(--bg-secondary) !important;
    border-color: #3b82f6 !important;
    color: var(--text-primary) !important;
}

/* Dark mode for budget progress bars */
[data-theme="dark"] .progress-bar-container {
    background-color: #374151 !important;
}

/* Dark mode for budget status colors */
[data-theme="dark"] .budget-status-good {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .budget-status-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .budget-status-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Dark mode for budget suggestions */
[data-theme="dark"] .budget-suggestions {
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .budget-suggestions .text-blue-800 {
    color: #60a5fa !important;
}

[data-theme="dark"] .budget-suggestions .text-blue-600 {
    color: #3b82f6 !important;
}/* Da
rk mode for navigation dropdown */
[data-theme="dark"] .nav-dropdown {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .nav-dropdown a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .nav-dropdown a:hover {
    background-color: var(--bg-tertiary) !important;
}

/* Dropdown animation improvements */
.dropdown-menu {
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .dropdown-menu {
    transform: translateY(0);
}

/* Ensure dropdown stays visible on hover */
.group:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Navigation spacing optimization */
.nav-item {
    white-space: nowrap;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .mobile-nav-item {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-item:last-child {
        border-bottom: none;
    }
}