/*
 * Ebyte Consultas - Dark Theme
 * Inspirado em CPFHub.io
 */

/* Override Tailwind classes for dark mode */
.bg-gray-50 {
    background-color: var(--bg-primary) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

.bg-gray-100 {
    background-color: var(--bg-tertiary) !important;
}

.text-gray-600 {
    color: var(--text-secondary) !important;
}

.text-gray-700 {
    color: var(--text-primary) !important;
}

.text-gray-800 {
    color: var(--text-primary) !important;
}

.text-gray-500 {
    color: var(--text-muted) !important;
}

.border-gray-300 {
    border-color: var(--border-color) !important;
}

.border-b {
    border-color: var(--border-color) !important;
}

/* Stats Section */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Forms and Inputs */
input[type="text"] {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

input[type="text"]:focus {
    border-color: var(--accent-blue) !important;
    background-color: var(--bg-secondary) !important;
}

input[type="text"]::placeholder {
    color: var(--text-muted) !important;
}

/* Buttons */
button:not(.gradient-bg) {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Cards */
.shadow-xl,
.shadow-lg,
.shadow-md {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

/* Results */
#result-container .bg-white {
    background-color: var(--bg-card) !important;
}

#result-content .bg-gray-50 {
    background-color: var(--bg-tertiary) !important;
}

/* Error Messages */
.bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--accent-red) !important;
}

.text-red-800 {
    color: #fca5a5 !important;
}

.text-red-700 {
    color: #f87171 !important;
}

.text-red-500 {
    color: var(--accent-red) !important;
}

/* Modal CNPJ */
.modal-tab {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.modal-tab:hover {
    background-color: var(--bg-card);
}

.modal-tab.active {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
}

/* Feature Cards */
.from-purple-50 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, var(--bg-card) 100%) !important;
}

.border-purple-100,
.border-purple-200 {
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.from-blue-50 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-card) 100%) !important;
}

.border-blue-100,
.border-blue-200 {
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.from-green-50 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%) !important;
}

.border-green-100,
.border-green-200,
.border-green-300 {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.from-indigo-50 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 100%) !important;
}

.border-indigo-200,
.border-indigo-300 {
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Text colors for specific elements */
.text-purple-600,
.text-purple-700,
.text-purple-800 {
    color: var(--accent-purple) !important;
}

.text-blue-600,
.text-blue-700,
.text-blue-800 {
    color: var(--accent-blue) !important;
}

.text-green-700,
.text-green-800 {
    color: var(--accent-green) !important;
}

.text-indigo-600,
.text-indigo-800 {
    color: #818cf8 !important;
}

/* Background colors */
.bg-purple-100 {
    background-color: rgba(139, 92, 246, 0.2) !important;
}

.bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

.bg-green-100 {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

.bg-green-50 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-indigo-100 {
    background-color: rgba(99, 102, 241, 0.2) !important;
}

.bg-yellow-100 {
    background-color: rgba(251, 191, 36, 0.2) !important;
}

.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

/* Hover effects */
.hover\:bg-gray-100:hover {
    background-color: var(--bg-tertiary) !important;
}

.hover\:bg-gray-200:hover {
    background-color: var(--bg-card) !important;
}

.hover\:bg-purple-50:hover {
    background-color: rgba(139, 92, 246, 0.1) !important;
}

/* Border radius enhancements */
.rounded-2xl,
.rounded-xl {
    border-radius: 16px;
}

/* Footer Styles */
footer .text-white {
    color: var(--text-primary) !important;
}

footer .text-gray-400 {
    color: var(--text-secondary) !important;
}

footer .hover\:text-purple-400:hover {
    color: var(--accent-blue) !important;
}

footer .text-gray-600 {
    color: var(--text-muted) !important;
}

footer .border-gray-800 {
    border-color: var(--border-color) !important;
}

footer .text-green-400 {
    color: var(--accent-green) !important;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
