/* Dark Mode Styles */
/* Add dark mode support using CSS variables and data attribute */

html[data-theme="dark"],
body[data-theme="dark"] {
    --primary-color: #4a9eff;
    --primary-hover: #357abd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --disabled-color: #6c757d;
    --light-bg: #1a1a1a;
    --border-color: #404040;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
}

body[data-theme="dark"] {
    background-color: var(--light-bg) !important;
    color: var(--text-primary) !important;
}

/* Dark mode for Tailwind classes */
body[data-theme="dark"] .bg-white {
    background-color: #2d2d2d !important;
}

body[data-theme="dark"] .bg-gray-50 {
    background-color: #1a1a1a !important;
}

body[data-theme="dark"] .text-gray-700,
body[data-theme="dark"] .text-gray-600 {
    color: var(--text-primary) !important;
}

body[data-theme="dark"] .text-gray-900 {
    color: var(--text-primary) !important;
}

body[data-theme="dark"] .border-gray-200,
body[data-theme="dark"] .border-b {
    border-color: var(--border-color) !important;
}

body[data-theme="dark"] header,
body[data-theme="dark"] footer {
    background-color: #2d2d2d !important;
    border-color: var(--border-color) !important;
}

body[data-theme="dark"] .manus-header,
body[data-theme="dark"] .filters-section,
body[data-theme="dark"] .service-card,
body[data-theme="dark"] .stats-bar,
body[data-theme="dark"] .pagination-controls {
    background-color: #2d2d2d !important;
    border-color: var(--border-color) !important;
}

body[data-theme="dark"] .service-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%) !important;
}

body[data-theme="dark"] .filter-group input,
body[data-theme="dark"] .filter-group select,
body[data-theme="dark"] .pagination-size select {
    background-color: #2d2d2d !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body[data-theme="dark"] .tag {
    background-color: #3d3d3d !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

body[data-theme="dark"] .btn-secondary {
    background-color: #3d3d3d !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body[data-theme="dark"] .btn-secondary:hover {
    background-color: #4d4d4d !important;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

body[data-theme="dark"] .dark-mode-toggle {
    background-color: #4a9eff !important;
}

/* Additional dark mode styles for common elements */
body[data-theme="dark"] a {
    color: var(--text-primary);
}

body[data-theme="dark"] a:hover {
    color: var(--primary-color);
}

body[data-theme="dark"] .bg-blue-600 {
    background-color: var(--primary-color) !important;
}

body[data-theme="dark"] .bg-blue-600:hover {
    background-color: var(--primary-hover) !important;
}

body[data-theme="dark"] .text-blue-600 {
    color: var(--primary-color) !important;
}

body[data-theme="dark"] .text-blue-600:hover {
    color: var(--primary-hover) !important;
}

