/* AI Tools Page Specific Styles */

/* === HIGH CONTRAST LIGHT MODE FIXES === */

/* Card Styling */
.tool-card {
    background: #ffffff; /* Explicit White */
    border: 1px solid #cbd5e1; /* Darker Gray Border */
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Dark Mode Card Override */
.dark .tool-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.tool-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(3deg);
}

/* === INPUT FIELDS (Critical Visibility Fix) === */
.ai-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #cbd5e1; /* Thicker, darker border */
    background-color: #ffffff; /* Pure white background */
    color: #0f172a; /* Nearly black text */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ai-input::placeholder {
    color: #64748b; /* Dark Gray Placeholder (Visible) */
    opacity: 1;
}

.ai-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Dark Mode Input Override */
.dark .ai-input {
    background-color: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

.dark .ai-input::placeholder {
    color: #94a3b8;
}

/* Labels */
label {
    color: #1e293b; /* Dark Slate for Light Mode */
    font-weight: 700;
    font-size: 0.9rem;
}

.dark label {
    color: #e2e8f0;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}