body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.btn.fw-bold {
    font-weight: 700;
}

.card { 
    border-radius: 1rem; 
    font-family: 'Montserrat', sans-serif;
}

footer { 
    font-size: 0.9rem; 
    font-family: 'Montserrat', sans-serif;
}

/* Cover image styling */
.cover-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Google-style search inputs */
.google-search-input {
    border: 2px solid #dfe1e5;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
    background: #fff;
}

.google-search-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 2px 8px 1px rgba(66,133,244,.28);
}

.google-search-input::placeholder {
    color: #9aa0a6;
}

/* Search container styling */
.search-container .position-relative {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    pointer-events: none;
}

.dropdown-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    pointer-events: none;
}

.google-search-btn {
    background: #4285f4;
    border: 1px solid #4285f4;
    border-radius: 24px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 1px 3px rgba(66,133,244,.3);
}

.google-search-btn:hover {
    background: #3367d6;
    border-color: #3367d6;
    box-shadow: 0 2px 8px rgba(66,133,244,.4);
    transform: translateY(-1px);
}

.google-search-btn:focus {
    background: #3367d6;
    border-color: #3367d6;
    box-shadow: 0 0 0 0.2rem rgba(66,133,244,.25);
}

/* Enhanced progress bar styling */
.progress-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.google-progress {
    height: 8px;
    border-radius: 24px;
    background: #f1f3f4;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.google-progress-bar {
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc04, #ea4335);
    background-size: 200% 100%;
    border-radius: 24px;
    transition: width 0.5s ease;
    animation: progressGradient 2s ease-in-out infinite;
}

@keyframes progressGradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-text-container {
    text-align: center;
}

.progress-text {
    font-size: 16px;
    font-weight: 500;
    color: #3c4043;
    margin-bottom: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.progress-details {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #5f6368;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    min-width: 200px;
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* Focus effects */
.position-relative.focused .google-search-input {
    border-color: #4285f4;
    box-shadow: 0 2px 8px 1px rgba(66,133,244,.28);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .google-search-input {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .google-search-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Custom progress bar styling */
#progressContainer {
    margin-top: 1rem;
}

#progressContainer .progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

#progressBar {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

#progressBar.progress-bar-animated {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-bar-stripes 1s linear infinite;
}

#progressText {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.5rem;
}
