/* =========================================================
   MINER HOME PAGE LAYOUT
   ========================================================= */

#miner-container {
    display: flex;
    height: calc(100vh - 120px); /* navbar (≈50px) + master control (≈70px) */
    overflow: hidden;
    background: #f5f5f5;
}

/* =========================================================
   MASTER CONTROL SECTION
   ========================================================= */

.master-control {
    position: sticky;
    top: 50px; /* matches navbar height */
    z-index: 50;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
}

.mc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* Mining buttons should be grouped together */
.mc-buttons {
    justify-content: flex-start;   /* instead of space-between */
    gap: 8px;                      /* keeps your existing spacing */
}

.mc-topline {
    font-size: 1.1rem;
    font-weight: 600;
}

.mc-title span {
    margin-right: 10px;
}

.mc-buttons button,
.mc-outbound-buttons button {
    margin-right: 8px;
}

.mc-pending-count {
    font-weight: bold;
    margin-left: 4px;
}

.mc-prospective-url {
    font-family: monospace;
    font-size: 0.9rem;
}

/* Second outbound row: URL + button should sit together */
.mc-outbound + .mc-outbound {
    justify-content: flex-start;
    gap: 12px; /* optional, gives nice spacing */
}

/* =========================================================
   LEFT PANE
   ========================================================= */

#left-pane {
    width: 40%;
    min-width: 200px;
    max-width: 80%;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Mining Sites Table */
#mining-sites-table {
    width: 100%;
    border-collapse: collapse;
}

#mining-sites-table th,
#mining-sites-table td {
    padding: 6px 8px;
    font-size: 14px;
}

#mining-sites-table thead th {
    background: #e9e9e9;
    border-bottom: 1px solid #ccc;
}

#mining-sites-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

/* Action buttons column */
.site-actions {
    display: flex;
    gap: 6px;
}

.site-actions button {
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

/* =========================================================
   DIVIDER
   ========================================================= */

#divider {
    width: 6px;
    background: #ddd;
    cursor: col-resize;
    flex-shrink: 0;
}

#divider:hover {
    background: #ccc;
}

/* =========================================================
   RIGHT PANE (LOG OUTPUT)
   ========================================================= */

#right-pane {
    flex: 1;
    overflow: hidden;
    background: #fafafa;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#log-output {
    flex: 1;
    overflow-y: auto;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Individual log lines */
.log-line {
    margin-bottom: 4px;
}

/* Optional: timestamp styling */
.log-timestamp {
    color: #888;
    margin-right: 6px;
}
