@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.logo img {
    height: 80px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #000;
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    padding: 12px 5px;
    transition: all 0.3s;
    position: relative;
    outline: none;
}

.tab-btn:hover {
    color: #444;
}

.tab-btn.active {
    color: #5bc0de;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #5bc0de;
    border-radius: 3px 3px 0 0;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Handled by padding in rows */
}

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-row:last-child {
    border-bottom: none;
}

.row-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.copy-btn {
    background-color: #5bc0de;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(91, 192, 222, 0.2);
}

.copy-btn:hover {
    background-color: #46b8da;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.label {
    font-size: 16px;
    font-weight: 500;
    color: #444;
}

.value-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.value {
    font-family: 'Inter', monospace;
    /* Monospace for numbers looks better? Or sans-serif with tabular-nums */
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 180px;
    text-align: right;
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.refresh-btn:hover {
    color: #5bc0de;
    background-color: #f0f8ff;
}

select {
    font-size: 16px;
    font-weight: 500;
    color: #444;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

select:hover {
    background-color: #f9f9f9;
}

select:focus {
    outline: none;
    border-color: #5bc0de;
    background-color: #fff;
}

.filial-input {
    width: 60px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 2px 4px;
    font-family: 'Inter', monospace;
    font-feature-settings: "tnum";
    background-color: #fcfcfc;
    transition: border-color 0.2s;
}

.filial-input:focus {
    outline: none;
    border-color: #5bc0de;
    background-color: #fff;
}

.tab-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    .data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .value-container {
        width: 100%;
        justify-content: flex-end;
    }
}

footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #5bc0de;
    text-decoration: underline;
}

.content-text {
    line-height: 1.6;
    color: #555;
    font-size: 15px;
}

.content-text h3 {
    color: #333;
    margin-top: 25px;
}