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: 2px 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);
    padding: 12px 48px;
    font-size: 16px;
    height: auto;
}

.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;
}

/* Classy animated orb progress */
.classy-progress { position: relative; }
.progress-orb-wrapper { position:relative; width:220px; height:220px; }
.progress-orb { --orb-angle:0deg; position:relative; width:100%; height:100%; border-radius:50%; background:conic-gradient(#4e54c8 0deg, #8f94fb var(--orb-angle), #eceff3 var(--orb-angle) 360deg); display:flex; align-items:center; justify-content:center; filter: drop-shadow(0 10px 18px rgba(78,84,200,0.25)) drop-shadow(0 4px 8px rgba(0,0,0,0.12)); transition: background 0.6s ease; overflow:visible; }
.progress-orb:before { content:""; position:absolute; inset:6px; background:radial-gradient(circle at 30% 30%, #ffffff 0%, #eef1f8 40%, #dfe4ee 100%); border-radius:50%; box-shadow: inset 0 4px 12px rgba(0,0,0,0.08), inset 0 -6px 14px rgba(0,0,0,0.05); }
.progress-orb-glow { position:absolute; inset:0; border-radius:50%; background:radial-gradient(circle at 50% 50%, rgba(143,148,251,0.55), rgba(78,84,200,0) 70%); filter:blur(18px); opacity:0.7; pointer-events:none; animation: orbGlow 4s ease-in-out infinite; }
.progress-orb-inner { position:relative; z-index:2; width:140px; height:140px; border-radius:50%; background:linear-gradient(145deg,#ffffff,#f0f3f9); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04), inset 0 2px 4px rgba(255,255,255,0.6); }
.progress-percent { font-size:2.1rem; font-weight:700; background:linear-gradient(120deg,#4e54c8,#8f94fb); -webkit-background-clip:text; background-clip:text; color:transparent; filter:drop-shadow(0 2px 3px rgba(0,0,0,0.1)); transition:opacity .5s ease; }
.progress-check { position:absolute; font-size:3.2rem; font-weight:700; color:#34a853; opacity:0; transform:scale(.6); transition:all .6s cubic-bezier(.19,1,.22,1); text-shadow:0 4px 10px rgba(52,168,83,0.35); }
.progress-check.show { opacity:1; transform:scale(1); }
.orb-pulse-layer { position:absolute; inset:0; border-radius:50%; pointer-events:none; animation: orbPulse 3.5s ease-in-out infinite; background:radial-gradient(circle, rgba(142,148,251,0.15), rgba(142,148,251,0) 70%); }
@keyframes orbGlow { 0%,100% { opacity:.65; } 50% { opacity:.9; } }
@keyframes orbPulse { 0% { transform:scale(.9); opacity:.6;} 50% { transform:scale(1.08); opacity:.95;} 100% { transform:scale(.9); opacity:.6;} }
.progress-friendly-msg { font-size:1.05rem; font-weight:600; letter-spacing:.5px; background:linear-gradient(120deg,#4e54c8,#8f94fb); -webkit-background-clip:text; background-clip:text; color:transparent; animation: fadeInMsg .6s ease; }
@keyframes fadeInMsg { from { opacity:0; transform:translateY(6px);} to { opacity:1; transform:translateY(0);} }
.sub-status { font-size:.75rem; margin-top:6px; letter-spacing:.08em; font-weight:600; text-transform:uppercase; }
.heartbeat-dot { display:inline-block; width:10px; height:10px; background:#34a853; border-radius:50%; box-shadow:0 0 0 0 rgba(52,168,83,0.7); animation: heartbeat 2s infinite; margin-left:4px; vertical-align:middle; }
@keyframes heartbeat { 0% { transform:scale(.9); box-shadow:0 0 0 0 rgba(52,168,83,0.6);} 50% { transform:scale(1); box-shadow:0 0 0 8px rgba(52,168,83,0);} 100% { transform:scale(.9); box-shadow:0 0 0 0 rgba(52,168,83,0);} }

/* Reduced motion: mirror preferences and disable decorative animations */
@media (prefers-reduced-motion: reduce) {
    .progress-orb-glow, .orb-pulse-layer, .heartbeat-dot { animation: none !important; }
    .progress-orb { transition: none !important; }
    .progress-percent, .progress-friendly-msg { animation: none !important; }
}

