/* Подключение корпоративных шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* BGP Unified System Styles */
.bgp-unified-dashboard, .bgp-unified-gold {
    font-family: 'Comfortaa', cursive;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bgp-unified-dashboard h3, .bgp-unified-gold h3 {
    color: #013c76; /* Корпоративный синий */
    margin-bottom: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Tenor Sans', sans-serif;
    border-bottom: 2px solid #A29663; /* Золотая линия */
    padding-bottom: 10px;
}

/* Кнопка обновления с корпоративными цветами */
.refresh-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border: 2px solid #A29663; /* Золотой border */
    text-align: center;
}

.bgp-refresh-btn {
    background: #A29663; /* Корпоративный золотой */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Comfortaa', cursive;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(162, 150, 99, 0.3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bgp-refresh-btn:hover {
    background: #4D472F; /* Hover цвет (тёмный золотой) */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(162, 150, 99, 0.4);
    border: 2px solid #013c76; /* Синий border при hover */
}

.refresh-info {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-family: 'Comfortaa', cursive;
}

.dashboard-notice {
    background: #e8f4fd;
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
    font-size: 14px;
    font-family: 'Comfortaa', cursive;
}

.wallet-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.wallet-name {
    font-weight: 600;
    color: #013c76; /* Синий */
    font-size: 16px;
    font-family: 'Tenor Sans', sans-serif;
}

.wallet-type {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-family: 'Comfortaa', cursive;
}

.wallet-type.cold {
    background: #d6eaf8;
    color: #2874a6;
    border: 1px solid #2874a6;
}

.wallet-type.hot {
    background: #fdebd0;
    color: #d68910;
    border: 1px solid #d68910;
}

.wallet-balances {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.balance-item {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.balance-item .currency {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-family: 'Comfortaa', cursive;
}

.balance-item .amount {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #12753d; /* Корпоративный зелёный */
    font-family: 'Courier New', monospace;
}

.wallet-info {
    font-size: 11px;
    color: #bdc3c7;
    text-align: center;
    margin-top: 8px;
    font-family: 'Comfortaa', cursive;
}

.wallet-info code {
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
}

.dashboard-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.total-balances {
    text-align: center;
    margin-bottom: 10px;
    color: #013c76; /* Синий */
    font-size: 16px;
    font-family: 'Tenor Sans', sans-serif;
    background: #f0f8ff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #A29663;
}

.total-balances strong {
    color: #12753d; /* Зелёный */
}

.update-info {
    text-align: center;
    font-size: 13px;
    color: #7f8c8d;
    font-family: 'Comfortaa', cursive;
}

/* Gold Dashboard */
.gold-header {
    text-align: center;
    margin-bottom: 20px;
}

.gold-purity {
    color: #A29663; /* Золотой */
    font-size: 16px;
    font-style: italic;
    margin-bottom: 5px;
    font-family: 'Tenor Sans', sans-serif;
}

.gold-standard {
    color: #7d6608;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Comfortaa', cursive;
    background: #fff9e6;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #A29663;
}

.gold-main-card {
    background: white;
    border: 2px solid #A29663; /* Золотой */
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(162, 150, 99, 0.1);
    background: linear-gradient(135deg, #fffdf6 0%, #fff9e6 100%);
}

.gold-amount {
    font-size: 36px;
    font-weight: 900;
    color: #A29663; /* Золотой */
    margin-bottom: 8px;
    font-family: 'Tenor Sans', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.gold-unit {
    font-size: 18px;
    color: #7d6608;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'Tenor Sans', sans-serif;
}

.gold-equivalent {
    font-size: 16px;
    color: #013c76; /* Синий */
    background: #f0f8ff;
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #013c76;
    font-weight: 600;
    font-family: 'Comfortaa', cursive;
}

/* Центрирование блоков в золотой панели */
.gold-breakdown {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #A29663;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f8ff 100%);
}

.gold-breakdown h4 {
    color: #013c76; /* Синий */
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Tenor Sans', sans-serif;
    border-bottom: 1px solid #A29663;
    padding-bottom: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: #013c76; /* Синий */
    font-weight: 600;
    min-width: 150px;
    text-align: right;
    font-family: 'Tenor Sans', sans-serif;
}

.breakdown-value {
    color: #12753d; /* Зелёный */
    font-weight: 700;
    font-family: 'Courier New', monospace;
    min-width: 150px;
    text-align: left;
    font-size: 15px;
}

.breakdown-percentage {
    color: #A29663; /* Золотой */
    font-weight: 500;
    min-width: 60px;
    text-align: left;
    font-family: 'Comfortaa', cursive;
}

.gold-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    text-align: center;
    padding: 12px 8px;
    background: #f0f8ff; /* Светло-синий фон */
    border-radius: 8px;
    font-size: 14px;
    color: #013c76; /* Синий текст */
    font-family: 'Comfortaa', cursive;
    border: 1px solid #A29663; /* Золотая граница */
    transition: all 0.3s;
}

.info-item:hover {
    background: #e6f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 60, 118, 0.1);
}

.bgp-error {
    background: #fee;
    border: 1px solid #f99;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #c00;
    font-family: 'Comfortaa', cursive;
}

/* Баннеры с корпоративными цветами */
.banner-blue {
    background: #013c76;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-family: 'Tenor Sans', sans-serif;
}

.banner-green {
    background: #12753d;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-family: 'Tenor Sans', sans-serif;
}

.banner-gold {
    background: #A29663;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-family: 'Tenor Sans', sans-serif;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bgp-unified-dashboard, .bgp-unified-gold {
        padding: 15px;
    }
    
    .wallet-balances {
        grid-template-columns: 1fr;
    }
    
    .gold-info {
        grid-template-columns: 1fr;
    }
    
    .gold-amount {
        font-size: 28px;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }
    
    .breakdown-label, .breakdown-value, .breakdown-percentage {
        min-width: auto;
        text-align: center;
        width: 100%;
    }
    
    .breakdown-label {
        font-size: 14px;
    }
    
    .breakdown-value {
        font-size: 18px;
        margin: 5px 0;
    }
    
    .gold-breakdown, .gold-info {
        max-width: 100%;
    }
    
    .refresh-controls {
        padding: 10px;
    }
    
    .bgp-refresh-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}