/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f4f8; 
    color: #2c3e50;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    min-height: 100vh;
}

/* App Header Banner Styling */
.app-banner {
    background-color: #5c6bc0; 
    color: #ffffff;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.text-group {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.app-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* Main Container Window */
.container {
    max-width: 740px;
    margin: 30px auto;
    padding: 0 20px;
}

.app-window {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a40;
    margin-bottom: 18px;
}

/* Layout for feature blocks describing what the app is doing */
.button-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.app-feature-step {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-desc {
    font-size: 0.85rem;
    color: #64748b;
    padding-left: 5px;
}

/* UI Buttons base */
.btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
}

/* Specific UI Button color mappings */
.btn-blue {
    background-color: #5c6bc0;
    color: white;
}

.btn-light {
    background-color: #eff3f9;
    color: #2c3e50;
}

/* Enlarged Download Button Variant */
.download-wrapper {
    margin-top: 15px;
}

.btn-green {
    background-color: #27ae60; 
    color: white;
    cursor: pointer;
}

.btn-large {
    padding: 20px 30px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.25);
}

.btn-green:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

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

.divider {
    border: 0;
    height: 1px;
    background: #cbd5e1;
    margin: 30px 0;
}

/* Donation Counter */
.donation-counter-card {
    background: linear-gradient(135deg, #5c6bc0 0%, #3949ab 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0 18px;
    box-shadow: 0 10px 24px rgba(92, 107, 192, 0.25);
}

.donation-counter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.85;
    margin-bottom: 8px;
}

.donation-counter-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.donation-counter-subtext {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Donation Page Actions */
.read-more-link {
    width: auto;
    display: inline-flex;
    margin: 8px 0 20px;
    padding: 10px 16px;
}

/* API Page Styles */
.api-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.api-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.api-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 4px;
}

.api-value {
    font-weight: 700;
    color: #1a2a40;
}

.api-refresh-btn {
    width: auto;
    padding: 10px 14px;
}

.api-status {
    margin-bottom: 12px;
}

.api-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.api-pill.success {
    background: #dcfce7;
    color: #166534;
}

.api-pill.error {
    background: #fee2e2;
    color: #b91c1c;
}

.api-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #334155;
}

.api-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.api-row span {
    color: #64748b;
}

.api-error {
    color: #b91c1c;
    font-weight: 600;
}

/* Info Deck Details */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: #f8fafc;
    border-left: 4px solid #5c6bc0;
    padding: 16px;
    border-radius: 4px;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.info-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse {
    animation: simplePulse 3s infinite ease-in-out;
}

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

@keyframes simplePulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(39, 174, 96, 0.25); }
    50% { box-shadow: 0 8px 28px rgba(39, 174, 96, 0.55); }
}
/* Update header layout to support both branding and actions */
.banner-content {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes donate button to the right */
    gap: 20px;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dedicated Donate Button Styling */
.btn-donate {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-donate:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}