/* ============================================================
   EasyeSIM Dashboard – Mijn eSIMs
   ============================================================ */

.ceb-esim-dashboard {
    max-width: 900px;
}

.ceb-esim-intro {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 15px;
}

/* ---- Grid ---- */
.ceb-esim-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Card ---- */
.ceb-esim-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s ease;
}
.ceb-esim-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.ceb-esim-card--faded {
    opacity: 0.65;
}

/* ---- Header ---- */
.ceb-esim-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.ceb-esim-card__title h3 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}
.ceb-esim-card__order {
    font-size: 13px;
    color: #94a3b8;
}

/* ---- Status badge ---- */
.ceb-esim-card__status {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ceb-esim-card__status--active {
    background: #dcfce7;
    color: #15803d;
}
.ceb-esim-card__status--expired {
    background: #f1f5f9;
    color: #64748b;
}
.ceb-esim-card__status--not-activated {
    background: #fef3c7;
    color: #92400e;
}
.ceb-esim-card__status--pending {
    background: #fff7ed;
    color: #9a3412;
}
.ceb-esim-card__status--error,
.ceb-esim-card__status--unknown {
    background: #fef2f2;
    color: #b91c1c;
}

/* ---- Usage bar ---- */
.ceb-esim-card__usage {
    margin-bottom: 20px;
}
.ceb-esim-card__usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ceb-esim-card__usage-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ceb-esim-card__usage-pct {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.ceb-esim-card__bar {
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}
.ceb-esim-card__bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}
.ceb-esim-card__bar-fill--green {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}
.ceb-esim-card__bar-fill--orange {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.ceb-esim-card__bar-fill--red {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.ceb-esim-card__usage-detail {
    font-size: 13px;
    color: #64748b;
}

/* ---- Notice (not activated / error) ---- */
.ceb-esim-card__notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 20px;
}
.ceb-esim-card__notice--error {
    background: #fef2f2;
    color: #b91c1c;
}
.ceb-esim-card__notice--pending {
    background: #fff7ed;
    color: #9a3412;
}
.ceb-esim-card__notice svg {
    flex-shrink: 0;
}

/* ---- Details grid ---- */
.ceb-esim-card__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.ceb-esim-card__detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ceb-esim-card__detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ceb-esim-card__detail-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}
.ceb-esim-card__detail-value--mono {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    word-break: break-all;
}

/* ---- Actions ---- */
.ceb-esim-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.ceb-esim-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.ceb-esim-card__btn--primary {
    background: #0f172a;
    color: #fff !important;
    border: none;
}
.ceb-esim-card__btn--primary:hover {
    background: #1e293b;
    color: #fff !important;
}
.ceb-esim-card__btn--refresh {
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}
.ceb-esim-card__btn--refresh:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.ceb-esim-card__btn--refresh.is-loading {
    pointer-events: none;
    opacity: 0.6;
}
.ceb-esim-card__btn--refresh.is-loading svg {
    animation: ceb-spin 0.8s linear infinite;
}

@keyframes ceb-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Empty state ---- */
.ceb-esim-empty {
    text-align: center;
    padding: 60px 20px;
}
.ceb-esim-empty__icon {
    color: #cbd5e1;
    margin-bottom: 20px;
}
.ceb-esim-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}
.ceb-esim-empty p {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 24px;
}
.ceb-esim-empty__btn {
    background: #0f172a !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}
.ceb-esim-empty__btn:hover {
    background: #1e293b !important;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .ceb-esim-card {
        padding: 16px;
    }
    .ceb-esim-card__header {
        flex-direction: column;
        gap: 8px;
    }
    .ceb-esim-card__title h3 {
        font-size: 15px;
    }
    .ceb-esim-card__details {
        grid-template-columns: 1fr;
    }
    .ceb-esim-card__actions {
        flex-direction: column;
    }
    .ceb-esim-card__btn {
        justify-content: center;
        width: 100%;
    }
}
