/* Adawati.app - Main CSS File */
/* Custom styles and enhancements for Adawati tools platform */

/* Global Styles */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1d4ed8;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
}

/* Tool Cards Hover Effects */
.tool-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.tool-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

/* Gradient Backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%);
}

/* Button Animations */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Search Bar Focus Effect */
#search-tools:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Section Transition Effects */
section {
    scroll-margin-top: 100px;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Tool Icon Animations */
.tool-card svg {
    transition: transform 0.3s ease;
}

.tool-card:hover svg {
    transform: scale(1.1);
}

/* Loading Animation for Search */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    background-color: #f9fafb;
    border-radius: 1rem;
    border: 2px dashed #d1d5db;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tool-card {
        margin-bottom: 1rem;
    }
    
    .tool-card:hover {
        transform: translateY(-3px);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Accessibility Improvements */
a:focus, button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Hide number input arrows */
.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spinner {
  -moz-appearance: textfield;
  appearance: textfield;
}