/* Custom Styles for Nexzoneo */

/* Theme Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Dark Theme Styles */
.dark body {
    background-color: #0f172a;
    color: #e2e8f0;
}

.dark header {
    background-color: #1e293b !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

.dark footer {
    background-color: #020617 !important;
}

/* Dark theme for hero section */
.dark .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #1e3a8a, #312e81) !important;
}

/* Dark theme for cards and sections */
.dark .bg-white {
    background-color: #1e293b !important;
    color: #e2e8f0;
}

.dark .bg-gray-50 {
    background-color: #0f172a !important;
}

.dark .bg-gray-100 {
    background-color: #1e293b !important;
}

.dark .text-gray-900 {
    color: #e2e8f0 !important;
}

.dark .text-gray-800 {
    color: #e2e8f0 !important;
}

.dark .text-gray-700 {
    color: #cbd5e1 !important;
}

.dark .text-gray-600 {
    color: #94a3b8 !important;
}

.dark .text-gray-500 {
    color: #64748b !important;
}

.dark .border-gray-200 {
    border-color: #334155 !important;
}

.dark .border-gray-300 {
    border-color: #334155 !important;
}

/* Dark theme for forms */
.dark input[type="text"],
.dark input[type="email"],
.dark textarea,
.dark select {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark textarea:focus,
.dark select:focus {
    border-color: #3b82f6;
    background-color: #1e293b;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    padding: 0;
}

.dark .theme-toggle {
    background-color: #475569;
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .theme-toggle-slider {
    transform: translateX(24px);
}

.theme-icon {
    width: 14px;
    height: 14px;
    color: #64748b;
}

.dark .theme-icon {
    color: #fbbf24;
}

/* Button Styles */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: #0f4c81;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #0a3a63;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #0f4c81;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid #0f4c81;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

/* Fix secondary button with white text and border on colored backgrounds */
.btn-secondary.border-white.text-white {
    color: white !important;
    background-color: transparent !important;
}

.btn-secondary.border-white.text-white:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.dark .btn-secondary.border-white.text-white {
    color: white !important;
}

.dark .btn-secondary.border-white.text-white:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Background Grid Pattern */
.bg-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0f4c81;
    outline-offset: 2px;
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

input.error,
textarea.error,
select.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #0f4c81;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Dark theme for shadows */
.dark .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Dark theme for specific components */
.dark .bg-accent-100 {
    background-color: #0f766e !important;
}

/* Dark theme for labels */
.dark label {
    color: #cbd5e1 !important;
}

/* Fix button text visibility - Light Mode */
.btn-primary.bg-white {
    background-color: #ffffff !important;
    color: #0f4c81 !important;
}

.btn-primary.bg-white:hover {
    background-color: #f3f4f6 !important;
    color: #0a3a63 !important;
}

/* Fix button text visibility - Dark Mode */
.dark .btn-primary.bg-white {
    background-color: #ffffff !important;
    color: #0f4c81 !important;
}

.dark .btn-primary.bg-white:hover {
    background-color: #f3f4f6 !important;
    color: #0a3a63 !important;
}

/* Ensure primary and accent text colors maintain visibility */
.dark .text-primary-700 {
    color: #0f4c81 !important;
}

.dark .text-accent-600 {
    color: #14b8a6 !important;
}

.dark .btn-primary.text-accent-600 {
    color: #14b8a6 !important;
}

/* Dark theme for border colors */
.dark .border-gray-100 {
    border-color: #334155 !important;
}

.dark .border-gray-700 {
    border-color: #475569 !important;
}

/* Dark theme hover states */
.dark .bg-gray-200:hover {
    background-color: #475569 !important;
}

.dark .hover\:bg-gray-100:hover {
    background-color: #334155 !important;
}

/* Dark theme for white hover backgrounds */
.dark .hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}/* Smooth theme transitions */
html {
    scroll-behavior: smooth;
}

/* Logo styling with padding */
.logo-img {
    padding: 8px 16px;
    background-color: #1e293b;
    border-radius: 0.5rem;
}

.dark .logo-img {
    background-color: #0f172a;
}
