/* InfoPanel CSS - pěkné styly pro InfoPanel komponenty s infoPanel- prefixem */

/* InfoPanel container - omezení výšky a scrollování */
#infoPanelContainer {
    max-height: 78vh;
    overflow-y: auto;
}

/* === OPERATIONS SECTION === */
.infoPanel-operations {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 14px;
}

.infoPanel-operations-label {
    color: #495057;
    font-weight: 500;
}

.infoPanel-operations-buttons {
    display: flex;
    gap: 12px;
}

.infoPanel-op-buy, .infoPanel-op-sell {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infoPanel-op-buy {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.infoPanel-op-sell {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* === CRYPTO LIST === */
.infoPanel-crypto-list {
    margin: 16px 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.infoPanel-crypto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.infoPanel-crypto-row:hover {
    background: #f8f9fa;
}

.infoPanel-crypto-row:last-child {
    border-bottom: none;
}

.infoPanel-crypto-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.infoPanel-crypto-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Specifické barvy pro různé kryptoměny */
.infoPanel-crypto-btc { background: #f7931a; }
.infoPanel-crypto-eth { background: #627eea; }
.infoPanel-crypto-ltc { background: #bfbbbb; }
.infoPanel-crypto-bch { background: #8dc351; }
.infoPanel-crypto-xmr { background: #ff6600; }
.infoPanel-crypto-dash { background: #1e88e5; }
.infoPanel-crypto-zcash { background: #f4b728; }

.infoPanel-crypto-symbol {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.infoPanel-crypto-operations {
    display: flex;
    gap: 16px;
    align-items: center;
}

.infoPanel-crypto-buy, .infoPanel-crypto-sell {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.infoPanel-crypto-buy.infoPanel-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.infoPanel-crypto-buy.infoPanel-unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.infoPanel-crypto-sell.infoPanel-available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.infoPanel-crypto-sell.infoPanel-unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* === FIAT CURRENCIES === */
.infoPanel-fiat {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 13px;
    color: #1565c0;
    font-weight: 500;
}

/* === GENERAL INFOPANEL ENHANCEMENTS === */

/* Vylepšení pro atm-section v InfoPanel */
.infoPanel-section {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.infoPanel-section h3 {
    background: linear-gradient(135deg, #c5c5c5 0%, #737b6d 100%);
    color: black;
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.infoPanel-section-icon {
    font-size: 18px;
}

/* Info grid vylepšení */
.infoPanel-info-grid {
    background: white;
    padding: 16px;
}

.infoPanel-info-item {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
}

.infoPanel-info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.infoPanel-info-label {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infoPanel-info-value {
    color: #212529;
    font-size: 14px;
    line-height: 1.4;
}

/* Address details vylepšení */
.infoPanel-address-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.infoPanel-address-details div {
    margin: 4px 0;
    font-size: 13px;
    color: #6c757d;
}

/* Contact grid vylepšení */
.infoPanel-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.infoPanel-contact-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.infoPanel-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2px;
}

.infoPanel-contact-value a {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.infoPanel-contact-value a:hover {
    text-decoration: underline;
}

/* Empty data styling */
.infoPanel-empty-data {
    background: white;
    padding: 24px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Services list vylepšení */
.infoPanel-section ul {
    background: white;
    padding: 16px 20px;
    margin: 0;
}

.infoPanel-section ul li {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

/* Operator logo v InfoPanel */
.infoPanel-operator-logo {
    max-height: 32px;
    max-width: 120px;
    margin-left: 12px;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile responzivita pro InfoPanel */
@media (max-width: 768px) {
    .infoPanel-crypto-row {
        padding: 10px 12px;
    }

    .infoPanel-crypto-operations {
        gap: 12px;
    }

    .infoPanel-operations-buttons {
        gap: 8px;
    }

    .infoPanel-op-buy, .infoPanel-op-sell {
        padding: 4px 8px;
        font-size: 11px;
    }

    .infoPanel-section h3 {
        font-size: 15px;
        padding: 10px 12px;
    }

    .infoPanel-info-grid {
        padding: 12px;
    }
}