/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --border-color: #dee2e6;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Tool Cards */
.card {
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

.card-body a {
    color: #0d6efd;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.card-body a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Language Selector */
.language-selector select {
    border-radius: 4px;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}

/* Ad Sections */
.ad-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    padding: 2rem;
    margin: 1rem 0;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.social-links a {
    color: #6c757d;
    font-size: 1.25rem;
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: #0d6efd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .language-selector {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Tool-specific styles */
.converter-input {
    margin-bottom: 1rem;
}

.result-display {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error states */
.error-message {
    color: #dc3545;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background-color: #f8d7da;
}

/* Accessibility */
.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Tool Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Search Results */
.search-highlight {
    background-color: yellow;
    padding: 0 2px;
} 