/* GitHub Dark Theme Override for Pulse */
/* Overrides Tailwind dark: classes with GitHub's color palette */

/* Backgrounds */
.dark .dark\:bg-gray-900 { background-color: #0d1117 !important; }
.dark .dark\:bg-gray-950 { background-color: #010409 !important; }
.dark .dark\:bg-gray-800 { background-color: #161b22 !important; }
.dark .dark\:bg-gray-700 { background-color: #21262d !important; }
.dark .dark\:bg-gray-600 { background-color: #30363d !important; }
.dark .dark\:bg-gray-800\/30 { background-color: rgba(22, 27, 34, 0.3) !important; }
.dark .dark\:bg-gray-800\/50 { background-color: rgba(22, 27, 34, 0.5) !important; }
.dark .dark\:bg-gray-800\/60 { background-color: rgba(22, 27, 34, 0.6) !important; }
.dark .dark\:bg-gray-700\/50 { background-color: rgba(33, 38, 45, 0.5) !important; }
.dark .dark\:bg-gray-900\/50 { background-color: rgba(13, 17, 23, 0.5) !important; }
.dark .dark\:bg-gray-50 { background-color: #161b22 !important; }

/* Text colors */
.dark .dark\:text-white { color: #f0f6fc !important; }
.dark .dark\:text-gray-100 { color: #e6edf3 !important; }
.dark .dark\:text-gray-200 { color: #c9d1d9 !important; }
.dark .dark\:text-gray-300 { color: #c9d1d9 !important; }
.dark .dark\:text-gray-400 { color: #8b949e !important; }
.dark .dark\:text-gray-500 { color: #6e7681 !important; }
.dark .dark\:text-gray-600 { color: #484f58 !important; }

/* Borders */
.dark .dark\:border-gray-700 { border-color: #30363d !important; }
.dark .dark\:border-gray-600 { border-color: #30363d !important; }
.dark .dark\:border-gray-800 { border-color: #21262d !important; }
.dark .dark\:border-gray-700\/50 { border-color: rgba(48, 54, 61, 0.5) !important; }
.dark .dark\:border-gray-100 { border-color: #30363d !important; }

/* Hover states */
.dark .dark\:hover\:bg-gray-600:hover { background-color: #30363d !important; }
.dark .dark\:hover\:bg-gray-700:hover { background-color: #21262d !important; }
.dark .dark\:hover\:bg-gray-500:hover { background-color: #30363d !important; }

/* Accent: Blue */
.dark .dark\:text-blue-400 { color: #58a6ff !important; }
.dark .dark\:text-blue-300 { color: #58a6ff !important; }
.dark .dark\:text-blue-200 { color: #79c0ff !important; }
.dark .dark\:bg-blue-900 { background-color: rgba(56, 139, 253, 0.2) !important; }
.dark .dark\:bg-blue-900\/30 { background-color: rgba(56, 139, 253, 0.1) !important; }
.dark .dark\:bg-blue-900\/40 { background-color: rgba(56, 139, 253, 0.15) !important; }
.dark .dark\:bg-blue-900\/50 { background-color: rgba(56, 139, 253, 0.2) !important; }
.dark .dark\:border-blue-800 { border-color: rgba(56, 139, 253, 0.4) !important; }
.dark .dark\:ring-blue-800 { --tw-ring-color: rgba(56, 139, 253, 0.4) !important; }

/* Accent: Red */
.dark .dark\:text-red-400 { color: #f85149 !important; }
.dark .dark\:text-red-300 { color: #ff7b72 !important; }
.dark .dark\:text-red-200 { color: #ffa198 !important; }
.dark .dark\:bg-red-800 { background-color: rgba(248, 81, 73, 0.2) !important; }
.dark .dark\:bg-red-800\/30 { background-color: rgba(248, 81, 73, 0.15) !important; }
.dark .dark\:bg-red-900 { background-color: rgba(248, 81, 73, 0.2) !important; }
.dark .dark\:bg-red-900\/20 { background-color: rgba(248, 81, 73, 0.1) !important; }
.dark .dark\:bg-red-900\/40 { background-color: rgba(248, 81, 73, 0.15) !important; }
.dark .dark\:border-red-700 { border-color: rgba(248, 81, 73, 0.4) !important; }
.dark .dark\:border-red-800 { border-color: rgba(248, 81, 73, 0.4) !important; }
.dark .dark\:ring-red-800 { --tw-ring-color: rgba(248, 81, 73, 0.4) !important; }

/* Accent: Green */
.dark .dark\:text-green-400 { color: #3fb950 !important; }
.dark .dark\:text-green-300 { color: #56d364 !important; }
.dark .dark\:bg-green-900 { background-color: rgba(63, 185, 80, 0.2) !important; }
.dark .dark\:bg-green-900\/50 { background-color: rgba(63, 185, 80, 0.2) !important; }
.dark .dark\:bg-green-800\/30 { background-color: rgba(63, 185, 80, 0.15) !important; }
.dark .dark\:border-green-700 { border-color: rgba(63, 185, 80, 0.4) !important; }

/* Accent: Purple/Indigo */
.dark .dark\:text-purple-400 { color: #bc8cff !important; }
.dark .dark\:text-purple-300 { color: #bc8cff !important; }
.dark .dark\:bg-purple-900\/20 { background-color: rgba(188, 140, 255, 0.1) !important; }
.dark .dark\:bg-purple-900\/40 { background-color: rgba(188, 140, 255, 0.15) !important; }
.dark .dark\:border-purple-700 { border-color: rgba(188, 140, 255, 0.4) !important; }
.dark .dark\:text-indigo-300 { color: #a371f7 !important; }
.dark .dark\:text-indigo-400 { color: #a371f7 !important; }
.dark .dark\:bg-indigo-900\/50 { background-color: rgba(137, 111, 222, 0.15) !important; }
.dark .dark\:border-indigo-700 { border-color: rgba(137, 111, 222, 0.4) !important; }
.dark .dark\:border-indigo-800 { border-color: rgba(137, 111, 222, 0.4) !important; }

/* Accent: Yellow */
.dark .dark\:text-yellow-400 { color: #d29922 !important; }
.dark .dark\:text-yellow-300 { color: #e3b341 !important; }
.dark .dark\:bg-yellow-900 { background-color: rgba(187, 128, 9, 0.2) !important; }
.dark .dark\:bg-yellow-900\/20 { background-color: rgba(187, 128, 9, 0.15) !important; }
.dark .dark\:border-yellow-700 { border-color: rgba(187, 128, 9, 0.4) !important; }

/* Form elements: inputs, selects */
.dark input:not([type="checkbox"]):not([type="radio"]),
.dark select,
.dark textarea {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}
.dark input:not([type="checkbox"]):not([type="radio"])::placeholder,
.dark textarea::placeholder {
    color: #484f58 !important;
}
.dark input:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3) !important;
}

/* Checkboxes */
.dark input[type="checkbox"] {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
}
.dark input[type="checkbox"]:checked {
    background-color: #2f81f7 !important;
    border-color: #2f81f7 !important;
}

/* Table hover */
.dark .dark\:hover\:bg-gray-600:hover { background-color: #1c2128 !important; }
.dark tr:hover { background-color: #1c2128 !important; }

/* Code blocks */
.dark code {
    background-color: rgba(110, 118, 129, 0.15) !important;
    color: #c9d1d9 !important;
}

/* Tailwind Prose override if used */
.dark .prose { color: #c9d1d9 !important; }

/* Misc utilities for dividers */
.dark .dark\:divide-gray-600 > * + * { border-color: #30363d !important; }
.dark .dark\:divide-gray-700 > * + * { border-color: #30363d !important; }

/* Shadows for dark mode */
.dark .shadow-md { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important; }
.dark .shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important; }

/* Selected rows */
.dark .dark\:bg-blue-900\/30 { background-color: rgba(56, 139, 253, 0.12) !important; }
