body {
    background: #f5f7fa;
    font-family: Arial, sans-serif;
}

.container {
    width: 60%;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

input[type=text] {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 14px;
    background: #0078ff;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #005fcc;
}

.json {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 20px;
    border-radius: 8px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 14px;
}

.back {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #0078ff;
    font-size: 18px;
}

.card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card h2 {
    margin-top: 0;
    color: #0078ff;
}

.decision {
    margin-bottom: 15px;
}

/* ----------------------------- */
/* TOGGLE BUTTON (Activities + Persons) */
/* ----------------------------- */
.toggle-btn {
    background: none;
    border: none;
    color: #0078ff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
}

.toggle-btn:hover {
    text-decoration: underline;
}

/* ----------------------------- */
/* PERSON BLOCKS */
/* ----------------------------- */
.person-block {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.person-details {
    margin-top: 10px;
    padding-left: 12px;
    border-left: 3px solid #0078ff;
}

.suspended {
    color: #d40000;
    font-weight: bold;
    margin-left: 10px;
    padding: 3px 6px;
    border: 2px solid #d40000;
    border-radius: 6px;
}

/* ----------------------------- */
/* COPYABLE FIELDS */
/* ----------------------------- */
.copyable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

/* ICON HIDDEN BY DEFAULT */
.copyable .copy-icon {
    font-size: 14px;
    opacity: 0; /* hidden */
    margin-left: 6px;
    transition: opacity 0.2s ease-in-out;
}

/* ICON VISIBLE ONLY ON HOVER */
.copyable:hover .copy-icon {
    opacity: 0.7;
}

/* Copied cloud */
.copied-toast {
    position: absolute;
    top: -22px;
    right: 0;
    background: #333;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}
.recent-box {
    margin-top: 25px;
    padding: 15px;
    background: #f0f4ff;
    border-radius: 10px;
    border-left: 4px solid #0078ff;
}

.recent-box h3 {
    margin-top: 0;
    font-size: 18px;
    color: #0078ff;
}

#recent-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.recent-item {
    padding: 6px 0;
    cursor: pointer;
    color: #333;
    font-size: 16px;
}

.recent-item:hover {
    color: #0078ff;
    text-decoration: underline;
}
/* Error box */
.error-box {
    margin-top: 15px;
    padding: 12px;
    background: #ffe5e5;
    color: #b30000;
    border-left: 4px solid #b30000;
    border-radius: 6px;
}
/* Compact Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-between;
    margin: 15px 0 25px;
    padding: 10px 15px;
    background: #f0f4ff;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
}

.stats-bar .stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid #d0d7e6;
}

.stats-bar .stat:last-child {
    border-right: none;
}

.stats-bar span {
    font-weight: bold;
    color: #0078ff;
}
/* --- Compact Stats Bar (Overrides) --- */
.stats-bar {
    max-width: 420px;      /* makes it narrow */
    margin: 20px auto 10px; /* centers it */
    padding: 8px 12px;      /* smaller padding */
    font-size: 13px;        /* smaller text */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.stats-bar .stat {
    border-right: 1px solid #d0d7e6;
}

.stats-bar .stat:last-child {
    border-right: none;
}

.stats-bar span {
    font-weight: bold;
    color: #0078ff;
}
/* Signature */
.signature {
    text-align: center;
    font-size: 12px;
    color: #666;
    opacity: 0.7;
    margin-top: 15px;
    font-family: "Comic Neue", "Comic Sans MS", cursive;
    transition: all 0.25s ease;
    user-select: none;
}

/* Hover animation */
.signature:hover {
    opacity: 1;
    transform: scale(1.08);
    color: #444;
}

/* Thunder icon stays bright */
.signature::before {
    content: "⚡ ";
    color: #ffcc00;
}
.stats-bar .stat {
    width: 150px;   /* μπορείς να το αλλάξεις */
    text-align: center;
    white-space: nowrap;
}
.stats-bar {
    display: flex;
    column-gap: 14px; /* adjust to taste */
}
.label-blue {
    background: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 8px;
    cursor: pointer;
}

.label-green {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 8px;
    cursor: pointer;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 999;
}
.popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;        /* <-- prevents overflow */
    overflow-y: auto;        /* <-- scrolls inside */
    border-radius: 8px;
    display: none;
    z-index: 1000;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.popup-close {
    margin-top: 15px;
    padding: 6px 12px;
    background: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-group span {
    margin-left: 8px;
}
.label-blue-light {
    background-color: #6bb6ff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 6px;
}

.label-green-light {
    background-color: #7edc7e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 6px;
}
