/* Custom Colors */
:root {
    --navy-600: #1e3a8a;
    --navy-700: #1e40af;
    --navy-800: #1e3a8a;
    --navy-500: #2563eb;
    --navy-400: #3b82f6;
    --navy-300: #60a5fa;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-300: #cbd5e1;
    --gold-500: #ca8a04;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-parallax {
    background-attachment: fixed;
    transition: background-color 0.3s ease;
}

.glow-effect {
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.glow-text {
    text-shadow: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-in-out;
}

.tool-card:hover, .tool-card-vertical:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tool-card-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.tool-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.parallax-bg {
    display: none;
}

.light-mode {
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: linear-gradient(to right, #dbeafe, #f3f4f6);
    --button-bg: #3b82f6;
    --hero-bg: linear-gradient(to bottom, #f3f4f6, #e0f2fe);
    --glow-text: linear-gradient(to right, #3b82f6, #93c5fd);
    --text-gray-200: #374151;
    --text-gray-300: #4b5563;
    --text-gray-400: #6b7280;
}

.light-mode body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.light-mode .bg-gray-900 {
    background-color: var(--bg-color);
}

.light-mode .text-white {
    color: var(--text-color);
}

.light-mode .text-gray-200 {
    color: var(--text-gray-200);
}

.light-mode .text-gray-300 {
    color: var(--text-gray-300);
}

.light-mode .text-gray-400 {
    color: var(--text-gray-400);
}

.light-mode .bg-gray-800 {
    background: var(--card-bg);
}

.light-mode .bg-gradient-to-r.from-navy-600.to-slate-700 {
    background: var(--header-bg);
}

.light-mode .bg-navy-600 {
    background-color: var(--button-bg);
}

.light-mode .bg-slate-600 {
    background-color: #64748b;
}

.light-mode .border-gray-700 {
    border-color: #e5e7eb;
}

.light-mode .border-navy-600 {
    border-color: #bfdbfe;
}

.light-mode .border-slate-600 {
    border-color: #94a3b8;
}

.light-mode .hero {
    background: var(--hero-bg);
}

.light-mode .parallax-bg {
    display: none;
}

.light-mode .glow-text {
    background: var(--glow-text);
    text-shadow: none;
}

.light-mode .text-navy-400 {
    color: #3b82f6;
}

.light-mode .text-navy-300 {
    color: #60a5fa;
}

.light-mode .text-slate-300 {
    color: #64748b;
}

.light-mode .bg-gradient-to-r.from-navy-800.to-transparent {
    background: linear-gradient(to right, #e0f2fe, transparent);
}

.light-mode .bg-gradient-to-r.from-transparent.to-slate-800 {
    background: linear-gradient(to right, transparent, #eff6ff);
}

/* Button Styles */
a[href] {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.bg-navy-600, .bg-slate-600 {
    padding: 0.5rem 1rem;
    width: auto;
    text-align: center;
}

.bg-navy-600:hover, .bg-slate-600:hover {
    transform: scale(1.05);
}

/* Style Google Search Box */
.gsc-control-cse {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.gsc-input-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 9999px !important;
    padding: 0.5rem 1rem !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.gsc-input {
    color: #1f2937 !important;
    font-size: 1rem !important;
}

.gsc-search-button-v2 {
    background: #2563eb !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.5rem 1rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.gsc-search-button-v2:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3) !important;
}

.light-mode .gsc-search-button-v2 {
    background: #3b82f6 !important;
}

.gsc-branding-text {
    color: #6b7280 !important;
}

/* Search Suggestions */
.gsc-completion-container {
    background: #1f2937 !important;
    border: 1px solid #334155 !important;
    color: #e5e7eb !important;
}

.gsc-completion-container td {
    color: #e5e7eb !important;
}

.light-mode .gsc-completion-container {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
}

.light-mode .gsc-completion-container td {
    color: #1f2937 !important;
}

/* Search Results Popup */
#searchOverlay {
    transition: opacity 0.3s ease;
}

#searchOverlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#searchOverlay:not(.hidden) {
    opacity: 1;
}

.gsc-resultsbox-visible {
    display: block !important;
}

.gsc-result {
    background: #1f2937 !important;
    border-bottom: 1px solid #334155 !important;
    padding: 1rem !important;
    color: #e5e7eb !important;
}

.gsc-result a {
    color: #60a5fa !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.gsc-result a:hover {
    color: #3b82f6 !important;
}

.light-mode .gsc-result {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
}

.light-mode .gsc-result a {
    color: #3b82f6 !important;
}

.light-mode .gsc-result a:hover {
    color: #2563eb !important;
}

.gsc-webResult .gsc-result {
    padding: 0.5rem !important;
}

.gsc-thumbnail-inside, .gsc-url-top, .gsc-table-cell-snippet {
    color: inherit !important;
}

.gsc-control-cse .gs-spelling, .gsc-control-cse .gs-result .gs-title {
    color: #60a5fa !important;
}

.light-mode .gsc-control-cse .gs-spelling, .light-mode .gsc-control-cse .gs-result .gs-title {
    color: #3b82f6 !important;
}

/* Fix logo and text alignment */
.logo-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-width: 150px !important;
}

.logo-container img {
    height: 1.75rem !important; /* 28px, equivalent to h-7 */
    flex-shrink: 0 !important;
}

.logo-container span {
    font-size: 1.25rem !important; /* 20px, equivalent to text-xl */
    white-space: nowrap !important;
    flex-grow: 1 !important;
}

@media (max-width: 640px) {
    .logo-container {
        min-width: 120px !important;
    }
    .logo-container img {
        height: 1.5rem !important; /* 24px, equivalent to h-6 */
    }
    .logo-container span {
        font-size: 1rem !important; /* 16px, equivalent to text-base */
    }
}