/* ==========================================================================
   Smart Currency & Bitcoin Tracker - Stylesheet
   ========================================================================== */

/* Variables for consistent theming */
:root {
    --scbt-primary: #0073aa;
    --scbt-secondary: #f7931a; /* Bitcoin Orange */
    --scbt-bg: #ffffff;
    --scbt-border: #e2e4e7;
    --scbt-text: #333333;
    --scbt-text-light: #666666;
    --scbt-green: #4caf50;
    --scbt-red: #f44336;
    --scbt-radius: 8px;
    --scbt-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Base Widget Styling */
.scbt-widget {
    background: var(--scbt-bg);
    border: 1px solid var(--scbt-border);
    border-radius: var(--scbt-radius);
    padding: 20px;
    box-shadow: var(--scbt-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--scbt-text);
    max-width: 400px;
    margin: 0 auto 20px;
    box-sizing: border-box;
}

.scbt-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: inherit;
    border-bottom: 2px solid var(--scbt-border);
    padding-bottom: 10px;
    text-align: center;
}

/* Fix text colors when inside the dark sticky footer */
#scbt-sticky-banner .scbt-widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: #ffffff;
}
#scbt-sticky-banner .scbt-widget h3 {
    display: none; /* Hide headings in the sticky banner to save space */
}

/* --- Currency Converter --- */
.scbt-form-group {
    margin-bottom: 15px;
}
.scbt-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}
.scbt-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}
.scbt-to-text {
    font-weight: bold;
    color: var(--scbt-text-light);
}
.scbt-widget input,
.scbt-widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--scbt-border);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}
.scbt-widget button {
    width: 100%;
    padding: 12px;
    background: var(--scbt-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.scbt-widget button:hover {
    background: #005177;
}
.scbt-result {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid var(--scbt-primary);
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--scbt-text);
}

/* --- Bitcoin Ticker --- */
.scbt-btc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.scbt-btc-price-container {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
}
.scbt-change {
    font-size: 1rem;
    margin-left: 10px;
    font-weight: 600;
}
.scbt-loading {
    color: var(--scbt-text-light);
    font-size: 1.2rem;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

/* --- Black Market Rates --- */
.scbt-rates-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}
.scbt-rate-box {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--scbt-border);
}
#scbt-sticky-banner .scbt-rate-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.scbt-rate-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--scbt-text-light);
    margin-bottom: 5px;
    font-weight: 600;
}
#scbt-sticky-banner .scbt-rate-label {
    color: #dddddd;
}
.scbt-rate-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--scbt-primary);
}
#scbt-sticky-banner .scbt-rate-value {
    color: #ffffff;
}
.scbt-rate-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--scbt-text-light);
}

/* Animations & Mobile */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@media (max-width: 600px) {
    .scbt-flex {
        flex-direction: column;
    }
    .scbt-to-text {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    #scbt-sticky-banner {
        flex-direction: column;
        padding: 15px !important;
    }
}