/* TranslateAPI Custom Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
}

/* General */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.display-4 {
    font-weight: 700;
}

/* Translation Widget */
.translation-widget textarea {
    resize: none;
    font-size: 1.1rem;
    line-height: 1.6;
}

.translation-widget textarea:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Language badges */
.badge.bg-light {
    border: 1px solid #dee2e6;
}

/* Code blocks */
pre {
    margin: 0;
}

pre code {
    font-size: 0.875rem;
}

/* Stats in hero */
.stats-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Feature icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard cards */
.dashboard-stat {
    transition: transform 0.2s ease;
}

.dashboard-stat:hover {
    transform: translateY(-3px);
}

/* API docs navigation */
.nav-pills .nav-link {
    color: #333;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.nav-pills .nav-link.active {
    background: transparent;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-pills .nav-link:hover {
    background: #f8f9fa;
}

/* Footer */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff !important;
}

/* Loading spinner overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .translation-widget textarea {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Language selector */
.language-select {
    min-width: 200px;
}

/* Copy button feedback */
.btn-copy.copied {
    background-color: #198754;
    color: #fff;
}

/* API docs code tabs */
.tab-content pre {
    border-radius: 0 0 0.375rem 0.375rem;
    margin: 0;
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.5s ease;
}

/* Usage chart bars */
.usage-bar {
    min-height: 10px;
    transition: height 0.3s ease;
}

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

/* API endpoint cards */
.endpoint-card .card-header code {
    font-size: 1rem;
}

/* Table improvements */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* File type badges */
.file-type-badge {
    font-family: monospace;
    font-size: 0.75rem;
}

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

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

/* Alert improvements */
.alert code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
