/* Result Section */
.result {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 32px 16px 32px 16px;
    margin: 32px auto;
    max-width: 950px;
}

.result > h1 {
    text-align: center;
    color: #2d3a4b;
    font-size: 2rem;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Tab Menu */
.tab-menu {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #e0e7ef;
    color: #2d3a4b;
    border: none;
    outline: none;
    padding: 10px 28px;
    border-radius: 24px 24px 0 0;
    font-size: 1.08rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
}

.tab-btn.active, .tab-btn:hover {
    background: #2563eb;
    color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.04);
    padding: 24px 8px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Result Table */
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(44,62,80,0.03);
}

.result-table th, .result-table td {
    padding: 12px 10px;
    text-align: center;
    font-size: 1rem;
}

.result-table th {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.result-table tr:nth-child(even) {
    background: #f1f5f9;
}

.result-table tr:hover {
    background: #e0e7ef;
    transition: background 0.2s;
}

.result-table td {
    color: #2d3a4b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 700px) {
    .result {
        padding: 12px 2px;
    }
    .tab-menu {
        gap: 6px;
    }
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.98rem;
    }
    .result-table th, .result-table td {
        padding: 7px 3px;
        font-size: 0.92rem;
    }
}

@media (max-width: 500px) {
    .result > h1 {
        font-size: 1.1rem;
    }
    .tab-menu {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-btn {
        border-radius: 12px 12px 0 0;
        margin-bottom: 2px;
    }
    .result-table th, .result-table td {
        font-size: 0.85rem;
    }
}
