/* ====================================
   Layout Styles
   ==================================== */

/* Wrapper */
.wrapper {
    max-width: 1080px;
    width: 95%;
    margin: 20px auto;
    padding: 0 10px;
    position: relative;
}

/* Two Column Layout */
.two-col {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 20px;
    align-items: flex-start;
}

.numbers-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Result Wrapper */
.result-wrapper {
    padding: 0;
    max-height: 700px;
    overflow-y: auto;
    overflow-x: auto; /* Tambahkan scroll horizontal */
    margin-top: 13px;
    border-radius: 16px;
    border: none;
    background: var(--bg-primary);
    box-shadow: var(--shadow-raised);
}

/* Browser Controls */
.browser-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.browser-controls .tabs {
    margin-bottom: 0;
}

/* Top Actions */
.top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-raised-hover);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-primary);
    border-top-color: var(--text-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}