/* Custom styles for investments layout */

/* Alpine.js x-cloak directive */
[x-cloak] {
    display: none !important;
}

/* Custom scrollbar for dark mode */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Form elements styling */
.form-input {
    background-color: #374151;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f3f4f6;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3B82F6;
}

.form-select {
    background-color: #374151;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f3f4f6;
    font-weight: 500;
}

.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3B82F6;
}

.btn-primary {
    background-color: #3B82F6;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #2563EB;
}

.btn-secondary {
    background-color: #374151;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #1F2937;
}

/* Navbar and mobile menu animations */
.navbar-dropdown {
    transition: all 0.3s ease-in-out;
    transform-origin: top;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Light mode overrides */
html:not(.dark) {
    background-color: #f3f4f6;
    color: #111827;
}

html:not(.dark) body {
    background-color: #f3f4f6;
    color: #111827;
}

html:not(.dark) .bg-dark-400 {
    background-color: #ffffff;
}

html:not(.dark) .bg-dark-300 {
    background-color: #f9fafb;
}

html:not(.dark) .border-gray-800 {
    border-color: #e5e7eb;
}

html:not(.dark) .text-gray-200,
html:not(.dark) .text-gray-300,
html:not(.dark) .text-gray-400 {
    color: #4b5563;
}

html:not(.dark) .hover\:bg-dark-200:hover,
html:not(.dark) .hover\:bg-gray-700:hover {
    background-color: #e5e7eb;
}

html:not(.dark) .bg-dark-500 {
    background-color: #f3f4f6;
}

/* MGM popup styles */
.mgm {
    border-radius: 7px;
    position: fixed;
    z-index: 90;
    bottom: 45%;
    left: 50px;
    background: #fff;
    padding: 10px 27px;
    box-shadow: 0px 5px 13px 0px rgba(0, 0, 0, 0.3);
}

.mgm a {
    font-weight: 700;
    display: block;
    color: #1c8e51;
}

.mgm a,
.mgm a:active {
    transition: all 0.2s ease;
    color: #1c8e51;
}

/* Sticky widget */
.last-widget {
    position: sticky;
    z-index: 10;
    bottom: 0;
}
