/* ----------------------------------------------------------
   PROFILES TABLE CARD
---------------------------------------------------------- */

@media (max-width: 770px) {
    .gdi-table {
        display: block;
        overflow-x: auto;
    }
}

.gdi-table th {
    font-weight: 600;
    font-size: 13.5px;
    padding: 12px 10px;
    background: #f8f9fb;
}

.gdi-table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.gdi-table tr:hover td {
    background: #f3f6ff;
}

/* ----------------------------------------------------------
   PROGRESS BAR
---------------------------------------------------------- */

#gdi-progress-container {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e7e7ea;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.05),
        0 6px 16px rgba(0,0,0,0.06);
}

#gdi-progress-label {
    font-size: 15px;
    margin-bottom: 10px;
}

.gdi-progress-bar-wrapper {
    width: 100%;
    background: #eef1f5;
    border-radius: 8px;
    overflow: hidden;
}

#gdi-progress-bar {
    width: 0%;
    background: linear-gradient(90deg, #4e8cff, #7aa9ff);
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 6px 0;
    transition: width 0.25s ease;
}


.gdi-modal-inner {
    width: 560px;
    max-height: 80vh;
}

/* Inputs */
#gdi-profile-form input[type="text"],
#gdi-profile-form textarea,
#gdi-profile-form select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d4d6dd;
    background: #f9f9fb;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

#gdi-profile-form input:focus,
#gdi-profile-form textarea:focus,
#gdi-profile-form select:focus {
    border-color: #4e8cff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(78,140,255,0.15);
}

#gdi-profile-form label {
    display: block;
    padding-bottom: 10px;
}

.gdi-row {
    display: flex;
    gap: 50px;
}

.gdi-small {
    width: 80px !important;
}

.gdi-fields-block {
    background: #fafafb;
    border: 1px solid #e5e6ea;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
}

.gdi-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 14px;
    margin-bottom: 10px;
}

textarea#gdi-api {
    height: 50px;
	vertical-align: middle;
    line-height: 2;
}

/* ----------------------------------------------------------
   CSV COLUMNS REFERENCE
---------------------------------------------------------- */

.gdi-columns-reference {
    outline: none;
}

.gdi-columns-reference > summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    padding: 16px 20px;
    margin: -20px -20px 0;
    border-radius: 12px;
    list-style: none;
    user-select: none;
}

.gdi-columns-reference > summary::-webkit-details-marker { display: none; }

.gdi-columns-reference > summary::before {
    content: '▶';
    font-size: 11px;
    color: #6c6c7e;
    transition: transform 0.18s;
    flex-shrink: 0;
}

.gdi-columns-reference[open] > summary::before {
    transform: rotate(90deg);
}

.gdi-columns-reference > summary:hover {
    background: #f6f7fb;
}

.gdi-columns-reference-title {
    font-weight: 600;
    font-size: 14px;
    color: #1d2023;
}

.gdi-columns-reference-hint {
    font-size: 12.5px;
    color: #888;
}

.gdi-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
    padding: 16px 4px 4px;
}

@media (max-width: 900px) {
    .gdi-columns-grid { grid-template-columns: 1fr; }
}

.gdi-col-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
}

.gdi-col-row:hover {
    background: #f3f6ff;
}

.gdi-col-name {
    flex-shrink: 0;
    min-width: 140px;
    font-family: monospace;
    font-size: 12.5px;
    font-weight: 600;
    color: #2563eb;
    background: #eff4ff;
    border: 1px solid #c7d9fd;
    border-radius: 4px;
    padding: 2px 7px;
}

.gdi-col-desc {
    font-size: 12.5px;
    color: #555;
    line-height: 1.45;
}

/* ----------------------------------------------------------
   LOG BOX CARD
---------------------------------------------------------- */

#gdi-refresh-log {
	margin-top: -15px;
}

.gdi-log-box {
    background: #1a1a24;
    color: #e8e8ef;
    padding: 18px;
    height: 360px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid #343443;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
}
