/* Base Styles */
.infobox-container {
    width: 100%;
    height: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0.3), rgba(255, 255, 255, 0.9)), url('https://chainproof.dev/wp-content/uploads/2025/07/box_bg.jpg') top/cover no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}

.left-content {
    width: calc(100% - 148px);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.eth-logo {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chain-name {
    font-size: 18px;
    font-weight: 600;
    color: #2e50d8;
}

.token-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.token-info {
    margin-bottom: 15px;
    color: #555;
}

.token-type {
    font-weight: 600;
    margin-bottom: 8px;
}

.date-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 15px 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    position: relative;
    width: 12px;
    height: 12px;
}

.ping-animation {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.25;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.gray {
    background-color: #CECCCC;
}

.yellow {
    background-color: #CFBC08;
}

.orange {
    background-color: #CF680C;
}

.red {
    background-color: #CF130C;
}

.green {
    background-color: #47BB78;
}

.button-container {
    text-align: left;
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.audit-button, .kyc-button {
    display: inline-block;
    padding: 8px 25px;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}

.audit-button {
    background-color: #2a7de1;
}

.kyc-button {
    background-color: #57C41B;
}

.image-container {
    position: relative;
    align-self: center;
    margin-left: -20px;
}

.main-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.percentage-badge {
    position: absolute;
    padding: 4px;
    bottom: -12px;
    left: -12px;
    background-color: white;
    border: 1px solid #6b7280;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.percentage-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle {
    width: 36px;
    height: 36px;
    transform: rotate(-90deg);
}

.progress-bg {
    stroke: #d1d5db;
    stroke-width: 3.75;
    fill: transparent;
}

.progress-fill {
    stroke: #3EB885;
    stroke-width: 3.75;
    fill: transparent;
    stroke-dasharray: 94.28571428571428;
}

.percentage-text {
    position: absolute;
    font-size: 11px;
    color: black;
    font-weight: bold;
}

@keyframes ping {
    0% { transform: scale(0.8); opacity: 0.5; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .infobox-container {
        width: 360px;
        height: 300px;
        padding: 15px;
    }

    .left-content {
        width: calc(100% - 100px); /* Adjusted to account for smaller image */
    }

    .main-image {
        width: 84px;
        height: 84px;
    }

    .percentage-badge {
        bottom: -8px;
        left: -8px;
    }

    .token-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .status-indicator {
        gap: 8px;
        margin: 10px 0;
        flex-wrap: wrap;
    }

    .button-container {
        justify-content: flex-start; /* Keeps buttons left-aligned */
    }
}
